Update docstrings (#7374)

* Update docstrings

* Update docstrings

* Update docstrings

* Update docstrings

* Update docstrings

* Update docstrings

* Update docstring

* Update docstrings

* Update docstrings

* Fix lint issues

* Update docstrings

* Revert changes in dict
This commit is contained in:
Fabian Affolter 2017-05-02 18:18:47 +02:00 committed by Paulus Schoutsen
parent 0e08925259
commit a4f1f6e724
340 changed files with 1533 additions and 1708 deletions

View file

@ -59,7 +59,7 @@ def async_track_state_change(hass, entity_ids, action, from_state=None,
@callback
def state_change_listener(event):
"""The listener that listens for specific state changes."""
"""Handle specific state changes."""
if entity_ids != MATCH_ALL and \
event.data.get('entity_id') not in entity_ids:
return
@ -175,7 +175,7 @@ def async_track_time_interval(hass, action, interval):
@callback
def interval_listener(now):
"""Called when when the interval has elapsed."""
"""Handle elaspsed intervals."""
nonlocal remove
remove = async_track_point_in_utc_time(
hass, interval_listener, next_interval())
@ -212,7 +212,7 @@ def async_track_sunrise(hass, action, offset=None):
@callback
def sunrise_automation_listener(now):
"""Called when it's time for action."""
"""Handle points in time to execute actions."""
nonlocal remove
remove = async_track_point_in_utc_time(
hass, sunrise_automation_listener, next_rise())
@ -249,7 +249,7 @@ def async_track_sunset(hass, action, offset=None):
@callback
def sunset_automation_listener(now):
"""Called when it's time for action."""
"""Handle points in time to execute actions."""
nonlocal remove
remove = async_track_point_in_utc_time(
hass, sunset_automation_listener, next_set())