PyViCare: KeyError: 'entities'
hey @somm15, Using oischinger/ha_vicare I got the following error:
homeassistant_1 | 2019-01-14 18:12:54 ERROR (MainThread) [homeassistant.components.sensor] Error while setting up platform vicare
homeassistant_1 | Traceback (most recent call last):
homeassistant_1 | File "/usr/src/app/homeassistant/helpers/entity_platform.py", line 128, in _async_setup_platform
homeassistant_1 | SLOW_SETUP_MAX_WAIT, loop=hass.loop)
homeassistant_1 | File "/usr/local/lib/python3.6/asyncio/tasks.py", line 358, in wait_for
homeassistant_1 | return fut.result()
homeassistant_1 | File "/usr/local/lib/python3.6/concurrent/futures/thread.py", line 56, in run
homeassistant_1 | result = self.fn(*self.args, **self.kwargs)
homeassistant_1 | File "/config/custom_components/sensor/vicare.py", line 19, in setup_platform
homeassistant_1 | t = ViCareSession(config.get(CONF_USER), config.get(CONF_PASSWORD), "/tmp/vicare_token.save")
homeassistant_1 | File "/usr/local/lib/python3.6/site-packages/PyViCare/PyViCare.py", line 56, in __init__
homeassistant_1 | self._getInstallations()
homeassistant_1 | File "/usr/local/lib/python3.6/site-packages/PyViCare/PyViCare.py", line 186, in _getInstallations
homeassistant_1 | self.href=self.installations["entities"][0]["links"][0]["href"] homeassistant_1 | KeyError: 'entities'
Ignore the homeassistant_1
log prefix, that’s added by docker-compose.
Version: Home Assistant 0.85.0
Deployed via Docker image homeassistant/homeassistant
Any hint on what’s happening there?
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Comments: 36 (33 by maintainers)
Commits related to this issue
- Merge pull request #1 from somm15/master Merge from base — committed to somm15/PyViCare by crazyfx1 4 years ago
- Merge pull request #1 from somm15/master Merge from base — committed to CFenner/PyViCare by crazyfx1 4 years ago
I just upload PyViCare 0.0.30 It’s the latest version from Git. Let me know if everything is ok.
Sorry for the delay… family, job … etc
Good point, I have to URL encode the password. I’ll fix that later tonight or tomorrow. My bad.
@eldios Now it is as version 0.0.8