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

@ -19,14 +19,14 @@ from homeassistant.util.async import (
_LOGGER = logging.getLogger(__name__)
CONF_ALIAS = "alias"
CONF_SERVICE = "service"
CONF_SERVICE_DATA = "data"
CONF_SEQUENCE = "sequence"
CONF_EVENT = "event"
CONF_EVENT_DATA = "event_data"
CONF_DELAY = "delay"
CONF_WAIT_TEMPLATE = "wait_template"
CONF_ALIAS = 'alias'
CONF_SERVICE = 'service'
CONF_SERVICE_DATA = 'data'
CONF_SEQUENCE = 'sequence'
CONF_EVENT = 'event'
CONF_EVENT_DATA = 'event_data'
CONF_DELAY = 'delay'
CONF_WAIT_TEMPLATE = 'wait_template'
def call_from_config(hass: HomeAssistant, config: ConfigType,
@ -88,7 +88,7 @@ class Script():
@callback
def async_script_delay(now):
"""Called after delay is done."""
"""Handle delay."""
# pylint: disable=cell-var-from-loop
self._async_listener.remove(unsub)
self.hass.async_add_job(self.async_run(variables))
@ -124,7 +124,7 @@ class Script():
@callback
def async_script_wait(entity_id, from_s, to_s):
"""Called after template condition is true."""
"""Handle script after template condition is true."""
self._async_remove_listener()
self.hass.async_add_job(self.async_run(variables))