From 4ea6def1bdeb332b1f530f359a333e4f95078b2b Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Mon, 16 Nov 2015 07:53:31 +0100 Subject: [PATCH] Update docstrings and link to docs --- homeassistant/components/updater.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/homeassistant/components/updater.py b/homeassistant/components/updater.py index c0c95b57236..803cfa609ca 100644 --- a/homeassistant/components/updater.py +++ b/homeassistant/components/updater.py @@ -1,10 +1,10 @@ """ -homeassistant.components.sensor.updater -~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -Sensor that checks for available updates. +homeassistant.components.updater +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +Component that checks for available updates. For more details about this platform, please refer to the documentation at -at https://home-assistant.io/components/sensor.updater/ +at https://home-assistant.io/components/updater/ """ import logging @@ -22,10 +22,10 @@ ENTITY_ID = 'updater.updater' def setup(hass, config): - ''' setup the updater component ''' + """ Setup the updater component. """ def check_newest_version(_=None): - ''' check if a new version is available and report if one is ''' + """ Check if a new version is available and report if one is. """ newest = get_newest_version() if newest != CURRENT_VERSION and newest is not None: @@ -41,7 +41,7 @@ def setup(hass, config): def get_newest_version(): - ''' Get the newest HA version form PyPI ''' + """ Get the newest Home Assistant version from PyPI. """ try: req = requests.get(PYPI_URL)