i get this error from day one on hassio . i use a vm base on Ubuntu to hot the hassio.
has any one any idea how to fix it ?
2017-07-09 15:56:54 ERROR (SyncWorker_4) [homeassistant.components.sensor.wunderground] Check WUnderground API (‘this key does not exist’,)
2017-07-09 15:56:54 ERROR (MainThread) [homeassistant.components.sensor] Error while update entity from wunderground in sensor
Traceback (most recent call last):
File “/usr/lib/python3.6/site-packages/homeassistant/helpers/entity_component.py”, line 450, in _update_entity_states
yield from update_coro
File “/usr/lib/python3.6/site-packages/homeassistant/helpers/entity.py”, line 255, in async_update_ha_state
self._attr_setter(‘entity_picture’, str, ATTR_ENTITY_PICTURE, attr)
File “/usr/lib/python3.6/site-packages/homeassistant/helpers/entity.py”, line 322, in _attr_setter
value = getattr(self, name)
File “/usr/lib/python3.6/site-packages/homeassistant/components/sensor/wunderground.py”, line 713, in entity_picture
return re.sub(r’^http://', ‘https://’, url, flags=re.IGNORECASE)
File “/usr/lib/python3.6/re.py”, line 191, in sub
return _compile(pattern, flags).sub(repl, string, count)
TypeError: expected string or bytes-like object
It all looks correct from what I can see. And if you are getting live data, then your API key has to be correct.
I would consider opening an issue on Github; it may be some kind of uncaught exception or something on WU’s end (which has happened and WU people do check in on Github when they see mentions).