{"action":"created","issue":{"url":"https://api.github.com/repos/home-assistant/home-assistant/issues/3143","repository_url":"https://api.github.com/repos/home-assistant/home-assistant","labels_url":"https://api.github.com/repos/home-assistant/home-assistant/issues/3143/labels{/name}","comments_url":"https://api.github.com/repos/home-assistant/home-assistant/issues/3143/comments","events_url":"https://api.github.com/repos/home-assistant/home-assistant/issues/3143/events","html_url":"https://github.com/home-assistant/home-assistant/issues/3143","id":174812783,"number":3143,"title":"Wink - TypeError: unsupported operand type(s) for *: 'NoneType' and 'int'","user":{"login":"jwl17330536","id":15266488,"avatar_url":"https://avatars.githubusercontent.com/u/15266488?v=3","gravatar_id":"","url":"https://api.github.com/users/jwl17330536","html_url":"https://github.com/jwl17330536","followers_url":"https://api.github.com/users/jwl17330536/followers","following_url":"https://api.github.com/users/jwl17330536/following{/other_user}","gists_url":"https://api.github.com/users/jwl17330536/gists{/gist_id}","starred_url":"https://api.github.com/users/jwl17330536/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jwl17330536/subscriptions","organizations_url":"https://api.github.com/users/jwl17330536/orgs","repos_url":"https://api.github.com/users/jwl17330536/repos","events_url":"https://api.github.com/users/jwl17330536/events{/privacy}","received_events_url":"https://api.github.com/users/jwl17330536/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":9,"created_at":"2016-09-02T17:44:05Z","updated_at":"2016-09-23T01:12:35Z","closed_at":null,"body":"Make sure you are running the latest version of Home Assistant before reporting an issue.\r\n\r\nYou should only file an issue if you found a bug. Feature and enhancement requests should go in [the Feature Requests section](https://community.home-assistant.io/c/feature-requests) of our community forum:\r\n\r\n**Home Assistant release (`hass --version`):**\r\n0.27.1\r\n\r\n**Python release (`python3 --version`):**\r\n3.4.2\r\n\r\n**Component/platform:**\r\nWink\r\n\r\n**Description of problem:**\r\nWink components work at startup, but after some time an error is thrown and all control of Wink components fail.  The error seems to be related to lights specifically, but I notice that my locks, sensors, garage, etc all stop responding and showing the correct status.\r\n\r\n**Expected:**\r\nWink components to continue working and not throw errors.\r\n\r\n**Problem-relevant `configuration.yaml` entries and steps to reproduce:**\r\n```\r\nwink:\r\n  access_token: blah\r\n\r\n```\r\n\r\n**Traceback (if applicable):**\r\n```\r\nSep 02 12:56:04 automation hass[6471]: Exception in thread Thread-1361:\r\nSep 02 12:56:04 automation hass[6471]: Traceback (most recent call last):\r\nSep 02 12:56:04 automation hass[6471]: File \"/usr/lib/python3.4/threading.py\", line 920, in _bootstrap_inner\r\nSep 02 12:56:04 automation hass[6471]: self.run()\r\nSep 02 12:56:04 automation hass[6471]: File \"/usr/lib/python3.4/threading.py\", line 868, in run\r\nSep 02 12:56:04 automation hass[6471]: self._target(*self._args, **self._kwargs)\r\nSep 02 12:56:04 automation hass[6471]: File \"/home/hass/.homeassistant/deps/pubnub.py\", line 2555, in run\r\nSep 02 12:56:04 automation hass[6471]: 'callback'], data)\r\nSep 02 12:56:04 automation hass[6471]: File \"/home/hass/.homeassistant/deps/pubnub.py\", line 2525, in _invoke\r\nSep 02 12:56:04 automation hass[6471]: func(get_data_for_user(data))\r\nSep 02 12:56:04 automation hass[6471]: File \"/home/hass/.homeassistant/deps/pubnub.py\", line 2333, in sub_callback\r\nSep 02 12:56:04 automation hass[6471]: chobj['name'].split('-pnpres')[0])\r\nSep 02 12:56:04 automation hass[6471]: File \"/home/hass/.homeassistant/deps/pubnub.py\", line 2128, in _invoke\r\nSep 02 12:56:04 automation hass[6471]: func(get_data_for_user(msg), channel)\r\nSep 02 12:56:04 automation hass[6471]: File \"/srv/hass/hass_venv/lib/python3.4/site-packages/homeassistant/components/wink.py\", line 75, in _pubnub_update\r\nSep 02 12:56:04 automation hass[6471]: self.update_ha_state()\r\nSep 02 12:56:04 automation hass[6471]: File \"/srv/hass/hass_venv/lib/python3.4/site-packages/homeassistant/helpers/entity.py\", line 157, in update_ha_state\r\nSep 02 12:56:04 automation hass[6471]: attr = self.state_attributes or {}\r\nSep 02 12:56:04 automation hass[6471]: File \"/srv/hass/hass_venv/lib/python3.4/site-packages/homeassistant/components/light/__init__.py\", line 292, in state_attributes\r\nSep 02 12:56:04 automation hass[6471]: value = getattr(self, prop)\r\nSep 02 12:56:04 automation hass[6471]: File \"/srv/hass/hass_venv/lib/python3.4/site-packages/homeassistant/components/light/wink.py\", line 57, in brightness\r\nSep 02 12:56:04 automation hass[6471]: return int(self.wink.brightness() * 255)\r\nSep 02 12:56:04 automation hass[6471]: TypeError: unsupported operand type(s) for *: 'NoneType' and 'int'\r\n\r\n```\r\n\r\n**Additional info:**\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/home-assistant/home-assistant/issues/comments/249074792","html_url":"https://github.com/home-assistant/home-assistant/issues/3143#issuecomment-249074792","issue_url":"https://api.github.com/repos/home-assistant/home-assistant/issues/3143","id":249074792,"user":{"login":"w1ll1am23","id":6432770,"avatar_url":"https://avatars.githubusercontent.com/u/6432770?v=3","gravatar_id":"","url":"https://api.github.com/users/w1ll1am23","html_url":"https://github.com/w1ll1am23","followers_url":"https://api.github.com/users/w1ll1am23/followers","following_url":"https://api.github.com/users/w1ll1am23/following{/other_user}","gists_url":"https://api.github.com/users/w1ll1am23/gists{/gist_id}","starred_url":"https://api.github.com/users/w1ll1am23/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/w1ll1am23/subscriptions","organizations_url":"https://api.github.com/users/w1ll1am23/orgs","repos_url":"https://api.github.com/users/w1ll1am23/repos","events_url":"https://api.github.com/users/w1ll1am23/events{/privacy}","received_events_url":"https://api.github.com/users/w1ll1am23/received_events","type":"User","site_admin":false},"created_at":"2016-09-23T01:12:35Z","updated_at":"2016-09-23T01:12:35Z","body":"@jfath thanks for the output, unfortunately doesn't say much. Looks like the connections are still good. I am testing some stuff now around a type of ping like update to see if it keeps things working. Also I heard back from pubnub, they stated they would be releasing version 4 for beta sometime next week hopefully. I'll be checking that out as well. Hopefully we can get this fixed soon. "}}
{"actor":{"display_login":"w1ll1am23"}}