Added friendly name to updater component.

pull/627/head
Ryan Kraus 2015-11-15 05:15:36 -05:00
parent dfa9880176
commit 4463b69245
1 changed files with 2 additions and 1 deletions

View File

@ -27,7 +27,8 @@ def setup(hass, config):
newest = get_newest_version()
if newest != CURRENT_VERSION and newest is not None:
hass.states.set(
'{}.Update'.format(DOMAIN), newest)
'{}.Update'.format(DOMAIN), newest,
{'friendly_name': 'Update Available'})
event.track_time_change(hass, check_newest_version,
hour=12, minute=0, second=0)