Home Assistant release (hass --version):
0.33.4 (actually going on since 0.32.4)
Python release (python3 --version):
Python 3.5.2
Component/platform:
?
Updater Function
Description:
HA Updater function is no longer notifying of new updates available.
Traceback Error from log:
Traceback (most recent call last):
File "/usr/lib/python3.5/concurrent/futures/thread.py", line 55, in run
result = self.fn(*self.args, **self.kwargs)
File "/srv/jhass/lib/python3.5/site-packages/homeassistant/components/updater.py", line 74, in <lambda>
hass, lambda _: check_newest_version(hass, huuid),
File "/srv/jhass/lib/python3.5/site-packages/homeassistant/components/updater.py", line 82, in check_newest_version
newest, releasenotes = get_newest_version(huuid)
File "/srv/jhass/lib/python3.5/site-packages/homeassistant/components/updater.py", line 128, in get_newest_version
return (res['version'], res['release-notes'])
TypeError: 'NoneType' object is not subscriptable
Hello,
I have the same issue with the same message in log.
The new version of updater never works for me.
Thanks for investigation.
Same for me.
Interesting.. checking the code and running some steps it seems it is not returning the latest version.
# ipython
In [1]: import requests
In [2]: UPDATER_URL = 'https://updater.home-assistant.io/'
In [3]: req = requests.post(UPDATER_URL, json=info_object)
In [4]: res = req.json()
In [5]: res
Out[5]:
{'release-notes': 'https://home-assistant.io/blog/2016/11/20/calendar-wink-thermostats-cisco-ios/#release-0334---november-24',
'version': '0.33.2'}
In [6]: newest, releasenotes = (res['version'], res['release-notes'])
In [7]: newest
Out[7]: '0.33.2'
In [8]: releasenotes
Out[8]: 'https://home-assistant.io/blog/2016/11/20/calendar-wink-thermostats-cisco-ios/#release-0334---november-24'
So yes, the issue is accurate. updater.py is not grabbing the latest version because it seems we need to update it at 'https://updater.home-assistant.io/'.
Looping @balloob, @fabaff and @robbiet480 to take a look into this due to access to the website.
Same thing here; originally reported in forum threads. I've been relying on my own command line sensor to check updates since this started happening:
- platform: command_line
command: python3 -c "import requests; print(requests.get('https://pypi.python.org/pypi/homeassistant/json').json()['info']['version'])"
name: Current HA Version
I ran into this as well. I managed to stop the errors from showing up in my logs by disabling the reporting:
updater:
reporting: False
However the component still does not let me know in the front end when a new version is available.
Fixing up the updater to make sure this doesn't happen again. Sorry about that!
saw the merge 9 days ago and the subsequent release 0.34.4 on the referenced #4625 but that does not solve it on my install.
similar issue reported at #4747
Any updates? Could we possibly revert to the pre-0.31 code, which worked well but didn't have the data collection features - until a solution is found?
I believe that this has now been fixed see this comment on #4747 for more info. Closing as such.
Most helpful comment
Fixing up the updater to make sure this doesn't happen again. Sorry about that!