{"action":"created","issue":{"url":"https://api.github.com/repos/home-assistant/hassio/issues/186","repository_url":"https://api.github.com/repos/home-assistant/hassio","labels_url":"https://api.github.com/repos/home-assistant/hassio/issues/186/labels{/name}","comments_url":"https://api.github.com/repos/home-assistant/hassio/issues/186/comments","events_url":"https://api.github.com/repos/home-assistant/hassio/issues/186/events","html_url":"https://github.com/home-assistant/hassio/issues/186","id":256781706,"number":186,"title":"Errors thrown to log on restart after upgrade to version 0.53 then won't restart","user":{"login":"JSCSJSCS","id":656601,"avatar_url":"https://avatars2.githubusercontent.com/u/656601?v=4","gravatar_id":"","url":"https://api.github.com/users/JSCSJSCS","html_url":"https://github.com/JSCSJSCS","followers_url":"https://api.github.com/users/JSCSJSCS/followers","following_url":"https://api.github.com/users/JSCSJSCS/following{/other_user}","gists_url":"https://api.github.com/users/JSCSJSCS/gists{/gist_id}","starred_url":"https://api.github.com/users/JSCSJSCS/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JSCSJSCS/subscriptions","organizations_url":"https://api.github.com/users/JSCSJSCS/orgs","repos_url":"https://api.github.com/users/JSCSJSCS/repos","events_url":"https://api.github.com/users/JSCSJSCS/events{/privacy}","received_events_url":"https://api.github.com/users/JSCSJSCS/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2017-09-11T17:26:17Z","updated_at":"2017-09-11T20:20:34Z","closed_at":null,"author_association":"NONE","body":"After upgrading to Hass.io version 0.53, the following errors are logged after restart. Then I tried to restart again and it got stuck at the main screen and Home icon showing Uploading data. On a hunch, I commented out the sensor: section of the config file and it came back. I would like to get the WU sensors back online if possible.\r\n\r\n```\r\n2017-09-11 10:05:36 WARNING (Recorder) [homeassistant.components.recorder] Ended unfinished session (id=252 from 2017-09-11 16:52:24.443988)\r\n2017-09-11 10:05:38 ERROR (SyncWorker_7) [homeassistant.components.sensor.wunderground] Check WUnderground API ('Expecting value: line 2 column 1 (char 1)',)\r\n2017-09-11 10:05:39 ERROR (MainThread) [homeassistant.core] Error doing job: Task exception was never retrieved\r\nTraceback (most recent call last):\r\n  File \"/usr/lib/python3.6/asyncio/tasks.py\", line 179, in _step\r\n    result = coro.send(None)\r\n  File \"/usr/lib/python3.6/site-packages/homeassistant/helpers/entity_component.py\", line 381, in async_process_entity\r\n    new_entity, self, update_before_add=update_before_add\r\n  File \"/usr/lib/python3.6/site-packages/homeassistant/helpers/entity_component.py\", line 238, in async_add_entity\r\n    yield from entity.async_update_ha_state()\r\n  File \"/usr/lib/python3.6/site-packages/homeassistant/helpers/entity.py\", line 256, in async_update_ha_state\r\n    self._attr_setter('entity_picture', str, ATTR_ENTITY_PICTURE, attr)\r\n  File \"/usr/lib/python3.6/site-packages/homeassistant/helpers/entity.py\", line 323, in _attr_setter\r\n    value = getattr(self, name)\r\n  File \"/usr/lib/python3.6/site-packages/homeassistant/components/sensor/wunderground.py\", line 712, in entity_picture\r\n    return re.sub(r'^http://', 'https://', url, flags=re.IGNORECASE)\r\n  File \"/usr/lib/python3.6/re.py\", line 191, in sub\r\n    return _compile(pattern, flags).sub(repl, string, count)\r\nTypeError: expected string or bytes-like object\r\n2017-09-11 10:05:39 ERROR (MainThread) [homeassistant.core] Error doing job: Task exception was never retrieved\r\nTraceback (most recent call last):\r\n  File \"/usr/lib/python3.6/asyncio/tasks.py\", line 179, in _step\r\n    result = coro.send(None)\r\n  File \"/usr/lib/python3.6/site-packages/homeassistant/helpers/entity_component.py\", line 381, in async_process_entity\r\n    new_entity, self, update_before_add=update_before_add\r\n  File \"/usr/lib/python3.6/site-packages/homeassistant/helpers/entity_component.py\", line 238, in async_add_entity\r\n    yield from entity.async_update_ha_state()\r\n  File \"/usr/lib/python3.6/site-packages/homeassistant/helpers/entity.py\", line 256, in async_update_ha_state\r\n    self._attr_setter('entity_picture', str, ATTR_ENTITY_PICTURE, attr)\r\n  File \"/usr/lib/python3.6/site-packages/homeassistant/helpers/entity.py\", line 323, in _attr_setter\r\n    value = getattr(self, name)\r\n  File \"/usr/lib/python3.6/site-packages/homeassistant/components/sensor/wunderground.py\", line 712, in entity_picture\r\n    return re.sub(r'^http://', 'https://', url, flags=re.IGNORECASE)\r\n  File \"/usr/lib/python3.6/re.py\", line 191, in sub\r\n    return _compile(pattern, flags).sub(repl, string, count)\r\nTypeError: expected string or bytes-like object\r\n2017-09-11 10:05:39 ERROR (MainThread) [homeassistant.core] Error doing job: Task exception was never retrieved\r\nTraceback (most recent call last):\r\n  File \"/usr/lib/python3.6/asyncio/tasks.py\", line 179, in _step\r\n    result = coro.send(None)\r\n  File \"/usr/lib/python3.6/site-packages/homeassistant/helpers/entity_component.py\", line 381, in async_process_entity\r\n    new_entity, self, update_before_add=update_before_add\r\n  File \"/usr/lib/python3.6/site-packages/homeassistant/helpers/entity_component.py\", line 238, in async_add_entity\r\n    yield from entity.async_update_ha_state()\r\n  File \"/usr/lib/python3.6/site-packages/homeassistant/helpers/entity.py\", line 256, in async_update_ha_state\r\n    self._attr_setter('entity_picture', str, ATTR_ENTITY_PICTURE, attr)\r\n  File \"/usr/lib/python3.6/site-packages/homeassistant/helpers/entity.py\", line 323, in _attr_setter\r\n    value = getattr(self, name)\r\n  File \"/usr/lib/python3.6/site-packages/homeassistant/components/sensor/wunderground.py\", line 712, in entity_picture\r\n    return re.sub(r'^http://', 'https://', url, flags=re.IGNORECASE)\r\n  File \"/usr/lib/python3.6/re.py\", line 191, in sub\r\n    return _compile(pattern, flags).sub(repl, string, count)\r\nTypeError: expected string or bytes-like object\r\n2017-09-11 10:05:39 ERROR (MainThread) [homeassistant.core] Error doing job: Task exception was never retrieved\r\nTraceback (most recent call last):\r\n  File \"/usr/lib/python3.6/asyncio/tasks.py\", line 179, in _step\r\n    result = coro.send(None)\r\n  File \"/usr/lib/python3.6/site-packages/homeassistant/helpers/entity_component.py\", line 381, in async_process_entity\r\n    new_entity, self, update_before_add=update_before_add\r\n  File \"/usr/lib/python3.6/site-packages/homeassistant/helpers/entity_component.py\", line 238, in async_add_entity\r\n    yield from entity.async_update_ha_state()\r\n  File \"/usr/lib/python3.6/site-packages/homeassistant/helpers/entity.py\", line 256, in async_update_ha_state\r\n    self._attr_setter('entity_picture', str, ATTR_ENTITY_PICTURE, attr)\r\n  File \"/usr/lib/python3.6/site-packages/homeassistant/helpers/entity.py\", line 323, in _attr_setter\r\n    value = getattr(self, name)\r\n  File \"/usr/lib/python3.6/site-packages/homeassistant/components/sensor/wunderground.py\", line 712, in entity_picture\r\n    return re.sub(r'^http://', 'https://', url, flags=re.IGNORECASE)\r\n  File \"/usr/lib/python3.6/re.py\", line 191, in sub\r\n    return _compile(pattern, flags).sub(repl, string, count)\r\nTypeError: expected string or bytes-like object\r\n2017-09-11 10:05:39 ERROR (MainThread) [homeassistant.core] Error doing job: Task exception was never retrieved\r\nTraceback (most recent call last):\r\n  File \"/usr/lib/python3.6/asyncio/tasks.py\", line 179, in _step\r\n    result = coro.send(None)\r\n  File \"/usr/lib/python3.6/site-packages/homeassistant/helpers/entity_component.py\", line 381, in async_process_entity\r\n    new_entity, self, update_before_add=update_before_add\r\n  File \"/usr/lib/python3.6/site-packages/homeassistant/helpers/entity_component.py\", line 238, in async_add_entity\r\n    yield from entity.async_update_ha_state()\r\n  File \"/usr/lib/python3.6/site-packages/homeassistant/helpers/entity.py\", line 256, in async_update_ha_state\r\n    self._attr_setter('entity_picture', str, ATTR_ENTITY_PICTURE, attr)\r\n  File \"/usr/lib/python3.6/site-packages/homeassistant/helpers/entity.py\", line 323, in _attr_setter\r\n    value = getattr(self, name)\r\n  File \"/usr/lib/python3.6/site-packages/homeassistant/components/sensor/wunderground.py\", line 712, in entity_picture\r\n    return re.sub(r'^http://', 'https://', url, flags=re.IGNORECASE)\r\n  File \"/usr/lib/python3.6/re.py\", line 191, in sub\r\n    return _compile(pattern, flags).sub(repl, string, count)\r\nTypeError: expected string or bytes-like object\r\n2017-09-11 10:05:39 ERROR (MainThread) [homeassistant.core] Error doing job: Task exception was never retrieved\r\nTraceback (most recent call last):\r\n  File \"/usr/lib/python3.6/asyncio/tasks.py\", line 179, in _step\r\n    result = coro.send(None)\r\n  File \"/usr/lib/python3.6/site-packages/homeassistant/helpers/entity_component.py\", line 381, in async_process_entity\r\n    new_entity, self, update_before_add=update_before_add\r\n  File \"/usr/lib/python3.6/site-packages/homeassistant/helpers/entity_component.py\", line 238, in async_add_entity\r\n    yield from entity.async_update_ha_state()\r\n  File \"/usr/lib/python3.6/site-packages/homeassistant/helpers/entity.py\", line 256, in async_update_ha_state\r\n    self._attr_setter('entity_picture', str, ATTR_ENTITY_PICTURE, attr)\r\n  File \"/usr/lib/python3.6/site-packages/homeassistant/helpers/entity.py\", line 323, in _attr_setter\r\n    value = getattr(self, name)\r\n  File \"/usr/lib/python3.6/site-packages/homeassistant/components/sensor/wunderground.py\", line 712, in entity_picture\r\n    return re.sub(r'^http://', 'https://', url, flags=re.IGNORECASE)\r\n  File \"/usr/lib/python3.6/re.py\", line 191, in sub\r\n    return _compile(pattern, flags).sub(repl, string, count)\r\nTypeError: expected string or bytes-like object\r\n2017-09-11 10:05:39 ERROR (MainThread) [homeassistant.core] Error doing job: Task exception was never retrieved\r\nTraceback (most recent call last):\r\n  File \"/usr/lib/python3.6/asyncio/tasks.py\", line 179, in _step\r\n    result = coro.send(None)\r\n  File \"/usr/lib/python3.6/site-packages/homeassistant/helpers/entity_component.py\", line 381, in async_process_entity\r\n    new_entity, self, update_before_add=update_before_add\r\n  File \"/usr/lib/python3.6/site-packages/homeassistant/helpers/entity_component.py\", line 238, in async_add_entity\r\n    yield from entity.async_update_ha_state()\r\n  File \"/usr/lib/python3.6/site-packages/homeassistant/helpers/entity.py\", line 256, in async_update_ha_state\r\n    self._attr_setter('entity_picture', str, ATTR_ENTITY_PICTURE, attr)\r\n  File \"/usr/lib/python3.6/site-packages/homeassistant/helpers/entity.py\", line 323, in _attr_setter\r\n    value = getattr(self, name)\r\n  File \"/usr/lib/python3.6/site-packages/homeassistant/components/sensor/wunderground.py\", line 712, in entity_picture\r\n    return re.sub(r'^http://', 'https://', url, flags=re.IGNORECASE)\r\n  File \"/usr/lib/python3.6/re.py\", line 191, in sub\r\n    return _compile(pattern, flags).sub(repl, string, count)\r\nTypeError: expected string or bytes-like object\r\n2017-09-11 10:05:39 ERROR (MainThread) [homeassistant.core] Error doing job: Task exception was never retrieved\r\nTraceback (most recent call last):\r\n  File \"/usr/lib/python3.6/asyncio/tasks.py\", line 179, in _step\r\n    result = coro.send(None)\r\n  File \"/usr/lib/python3.6/site-packages/homeassistant/helpers/entity_component.py\", line 381, in async_process_entity\r\n    new_entity, self, update_before_add=update_before_add\r\n  File \"/usr/lib/python3.6/site-packages/homeassistant/helpers/entity_component.py\", line 238, in async_add_entity\r\n    yield from entity.async_update_ha_state()\r\n  File \"/usr/lib/python3.6/site-packages/homeassistant/helpers/entity.py\", line 247, in async_update_ha_state\r\n    device_attr = self.device_state_attributes\r\n  File \"/usr/lib/python3.6/site-packages/homeassistant/components/sensor/wunderground.py\", line 689, in device_state_attributes\r\n    for (attr, callback) in attrs.items():\r\nAttributeError: 'function' object has no attribute 'items'\r\n2017-09-11 10:05:39 ERROR (MainThread) [homeassistant.core] Error doing job: Task exception was never retrieved\r\nTraceback (most recent call last):\r\n  File \"/usr/lib/python3.6/asyncio/tasks.py\", line 179, in _step\r\n    result = coro.send(None)\r\n  File \"/usr/lib/python3.6/site-packages/homeassistant/helpers/entity_component.py\", line 381, in async_process_entity\r\n    new_entity, self, update_before_add=update_before_add\r\n  File \"/usr/lib/python3.6/site-packages/homeassistant/helpers/entity_component.py\", line 238, in async_add_entity\r\n    yield from entity.async_update_ha_state()\r\n  File \"/usr/lib/python3.6/site-packages/homeassistant/helpers/entity.py\", line 256, in async_update_ha_state\r\n    self._attr_setter('entity_picture', str, ATTR_ENTITY_PICTURE, attr)\r\n  File \"/usr/lib/python3.6/site-packages/homeassistant/helpers/entity.py\", line 323, in _attr_setter\r\n    value = getattr(self, name)\r\n  File \"/usr/lib/python3.6/site-packages/homeassistant/components/sensor/wunderground.py\", line 712, in entity_picture\r\n    return re.sub(r'^http://', 'https://', url, flags=re.IGNORECASE)\r\n  File \"/usr/lib/python3.6/re.py\", line 191, in sub\r\n    return _compile(pattern, flags).sub(repl, string, count)\r\nTypeError: expected string or bytes-like object\r\n2017-09-11 10:05:39 ERROR (MainThread) [homeassistant.core] Error doing job: Task exception was never retrieved\r\nTraceback (most recent call last):\r\n  File \"/usr/lib/python3.6/asyncio/tasks.py\", line 179, in _step\r\n    result = coro.send(None)\r\n  File \"/usr/lib/python3.6/site-packages/homeassistant/helpers/entity_component.py\", line 381, in async_process_entity\r\n    new_entity, self, update_before_add=update_before_add\r\n  File \"/usr/lib/python3.6/site-packages/homeassistant/helpers/entity_component.py\", line 238, in async_add_entity\r\n    yield from entity.async_update_ha_state()\r\n  File \"/usr/lib/python3.6/site-packages/homeassistant/helpers/entity.py\", line 256, in async_update_ha_state\r\n    self._attr_setter('entity_picture', str, ATTR_ENTITY_PICTURE, attr)\r\n  File \"/usr/lib/python3.6/site-packages/homeassistant/helpers/entity.py\", line 323, in _attr_setter\r\n    value = getattr(self, name)\r\n  File \"/usr/lib/python3.6/site-packages/homeassistant/components/sensor/wunderground.py\", line 712, in entity_picture\r\n    return re.sub(r'^http://', 'https://', url, flags=re.IGNORECASE)\r\n  File \"/usr/lib/python3.6/re.py\", line 191, in sub\r\n    return _compile(pattern, flags).sub(repl, string, count)\r\nTypeError: expected string or bytes-like object\r\n2017-09-11 10:05:48 WARNING (MainThread) [homeassistant.setup] Setup of media_player is taking over 10 seconds.\r\n2017-09-11 10:05:50 WARNING (MainThread) [homeassistant.setup] Setup of device_tracker is taking over 10 seconds.\r\n2017-09-11 10:05:50 WARNING (MainThread) [homeassistant.setup] Setup of switch is taking over 10 seconds.\r\n2017-09-11 10:05:51 WARNING (MainThread) [homeassistant.setup] Setup of tts is taking over 10 seconds.\r\n2017-09-11 10:05:57 WARNING (MainThread) [homeassistant.components.sensor] Setup of platform usps is taking over 10 seconds.\r\n2017-09-11 10:05:58 WARNING (MainThread) [homeassistant.components.media_player] Setup of platform cast is taking over 10 seconds.\r\n2017-09-11 10:06:16 ERROR (Recorder) [homeassistant.components.recorder.util] Error executing query: Object of type 'function' is not JSON serializable\r\n```\r\nI have not made any changes to the Weather Underground component and the sensors do seem to be working when I look at the States page.\r\nI may have an unusual way of implementing it though which has not been a problem until now:\r\n\r\nI have this in my configuration.yaml file:\r\n\r\n```\r\n# Weather prediction\r\nsensor: !include sensors.yaml\r\n```\r\nThe above line is what I commented out (along with some customizations) to get Hass,io to restart. \r\n\r\nAnd this is my sensors.yaml file which worked before the 0.53 upgrade:\r\n\r\n```\r\n  - platform: wunderground\r\n    api_key: !secret wunderground_api_key\r\n    monitored_conditions:\r\n      - dewpoint_f                #  Temperature in Fahrenheit below which water droplets begin to condense and dew can form\r\n      - feelslike_f               #  Feels like (or apparent) temperature in Fahrenheit\r\n      - pressure_in               #  Atmospheric air pressure in inches\r\n\r\netc.....\r\n```\r\nI did not change my WU api key, but just to be sure, I did log in and compare it and it is correct."},"comment":{"url":"https://api.github.com/repos/home-assistant/hassio/issues/comments/328647000","html_url":"https://github.com/home-assistant/hassio/issues/186#issuecomment-328647000","issue_url":"https://api.github.com/repos/home-assistant/hassio/issues/186","id":328647000,"user":{"login":"arsaboo","id":18319734,"avatar_url":"https://avatars1.githubusercontent.com/u/18319734?v=4","gravatar_id":"","url":"https://api.github.com/users/arsaboo","html_url":"https://github.com/arsaboo","followers_url":"https://api.github.com/users/arsaboo/followers","following_url":"https://api.github.com/users/arsaboo/following{/other_user}","gists_url":"https://api.github.com/users/arsaboo/gists{/gist_id}","starred_url":"https://api.github.com/users/arsaboo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arsaboo/subscriptions","organizations_url":"https://api.github.com/users/arsaboo/orgs","repos_url":"https://api.github.com/users/arsaboo/repos","events_url":"https://api.github.com/users/arsaboo/events{/privacy}","received_events_url":"https://api.github.com/users/arsaboo/received_events","type":"User","site_admin":false},"created_at":"2017-09-11T20:20:34Z","updated_at":"2017-09-11T20:20:34Z","author_association":"NONE","body":"@JSCSJSCS IN general, it is safe to file bugs against the main repo, unless your bugs are related to Hassio configuration, access, etc. "}}
{"actor":{"display_login":"arsaboo"}}