{"action":"created","issue":{"url":"https://api.github.com/repos/home-assistant/home-assistant/issues/4479","repository_url":"https://api.github.com/repos/home-assistant/home-assistant","labels_url":"https://api.github.com/repos/home-assistant/home-assistant/issues/4479/labels{/name}","comments_url":"https://api.github.com/repos/home-assistant/home-assistant/issues/4479/comments","events_url":"https://api.github.com/repos/home-assistant/home-assistant/issues/4479/events","html_url":"https://github.com/home-assistant/home-assistant/issues/4479","id":190553717,"number":4479,"title":"Miflora sensor","user":{"login":"Danielhiversen","id":650502,"avatar_url":"https://avatars.githubusercontent.com/u/650502?v=3","gravatar_id":"","url":"https://api.github.com/users/Danielhiversen","html_url":"https://github.com/Danielhiversen","followers_url":"https://api.github.com/users/Danielhiversen/followers","following_url":"https://api.github.com/users/Danielhiversen/following{/other_user}","gists_url":"https://api.github.com/users/Danielhiversen/gists{/gist_id}","starred_url":"https://api.github.com/users/Danielhiversen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Danielhiversen/subscriptions","organizations_url":"https://api.github.com/users/Danielhiversen/orgs","repos_url":"https://api.github.com/users/Danielhiversen/repos","events_url":"https://api.github.com/users/Danielhiversen/events{/privacy}","received_events_url":"https://api.github.com/users/Danielhiversen/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-11-20T11:47:57Z","updated_at":"2016-11-20T13:14:58Z","closed_at":null,"body":"Home Assistant release (hass --version):\r\nLatest from dev\r\n\r\nComponent/platform:\r\nMiflora sensor\r\n\r\nDescription of problem:\r\n```bash\r\nTraceback (most recent call last):\r\n  File \"/usr/lib/python3.5/asyncio/tasks.py\", line 242, in _step\r\n    result = coro.throw(exc)\r\n  File \"/home/dahoiv/home-assistant/homeassistant/helpers/entity_component.py\", line 386, in _update_entity_states\r\n    yield from update_coro\r\n  File \"/home/dahoiv/home-assistant/homeassistant/helpers/entity.py\", line 213, in async_update_ha_state\r\n    yield from self.hass.loop.run_in_executor(None, self.update)\r\n  File \"/usr/lib/python3.5/asyncio/futures.py\", line 361, in __iter__\r\n    yield self  # This tells Task to wait for completion.\r\n  File \"/usr/lib/python3.5/asyncio/tasks.py\", line 297, in _wakeup\r\n    future.result()\r\n  File \"/usr/lib/python3.5/asyncio/futures.py\", line 274, in result\r\n    raise self._exception\r\n  File \"/usr/lib/python3.5/concurrent/futures/thread.py\", line 55, in run\r\n    result = self.fn(*self.args, **self.kwargs)\r\n  File \"/home/dahoiv/home-assistant/homeassistant/util/__init__.py\", line 296, in wrapper\r\n    result = method(*args, **kwargs)\r\n  File \"/home/dahoiv/home-assistant/homeassistant/components/sensor/miflora.py\", line 134, in update\r\n    data = self.poller.parameter_value(self.parameter)\r\n  File \"/home/dahoiv/home-assistant/venv/lib/python3.5/site-packages/miflora/miflora_poller.py\", line 229, in parameter_value\r\n    self.fill_cache()\r\n  File \"/home/dahoiv/home-assistant/venv/lib/python3.5/site-packages/miflora/miflora_poller.py\", line 176, in fill_cache\r\n    if self.firmware_version() >= \"2.6.6\":\r\n  File \"/home/dahoiv/home-assistant/venv/lib/python3.5/site-packages/miflora/miflora_poller.py\", line 206, in firmware_version\r\n    self.battery = res[0]\r\nTypeError: 'NoneType' object is not subscriptable\r\n\r\n\r\n```\r\nIntroduced by pr: #4436\r\n\r\n@open-homeautomation : Could you have look at this?"},"comment":{"url":"https://api.github.com/repos/home-assistant/home-assistant/issues/comments/261777735","html_url":"https://github.com/home-assistant/home-assistant/issues/4479#issuecomment-261777735","issue_url":"https://api.github.com/repos/home-assistant/home-assistant/issues/4479","id":261777735,"user":{"login":"open-homeautomation","id":20554088,"avatar_url":"https://avatars.githubusercontent.com/u/20554088?v=3","gravatar_id":"","url":"https://api.github.com/users/open-homeautomation","html_url":"https://github.com/open-homeautomation","followers_url":"https://api.github.com/users/open-homeautomation/followers","following_url":"https://api.github.com/users/open-homeautomation/following{/other_user}","gists_url":"https://api.github.com/users/open-homeautomation/gists{/gist_id}","starred_url":"https://api.github.com/users/open-homeautomation/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/open-homeautomation/subscriptions","organizations_url":"https://api.github.com/users/open-homeautomation/orgs","repos_url":"https://api.github.com/users/open-homeautomation/repos","events_url":"https://api.github.com/users/open-homeautomation/events{/privacy}","received_events_url":"https://api.github.com/users/open-homeautomation/received_events","type":"User","site_admin":false},"created_at":"2016-11-20T13:14:58Z","updated_at":"2016-11-20T13:14:58Z","body":"Can you try to edit the miflora.py to use version 0.1.13? If this fixes the bug, I will create a patch."}}
{"actor":{"display_login":"open-homeautomation"}}