mirror of
https://github.com/home-assistant/core.git
synced 2025-12-24 12:59:34 +00:00
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:
committed by
Paulus Schoutsen
parent
0e08925259
commit
a4f1f6e724
@@ -50,7 +50,7 @@ def _load_restore_cache(hass: HomeAssistant):
|
||||
|
||||
@asyncio.coroutine
|
||||
def async_get_last_state(hass, entity_id: str):
|
||||
"""Helper to restore state."""
|
||||
"""Restore state."""
|
||||
if DATA_RESTORE_CACHE in hass.data:
|
||||
return hass.data[DATA_RESTORE_CACHE].get(entity_id)
|
||||
|
||||
@@ -84,7 +84,7 @@ def async_get_last_state(hass, entity_id: str):
|
||||
|
||||
@asyncio.coroutine
|
||||
def async_restore_state(entity, extract_info):
|
||||
"""Helper to call entity.async_restore_state with cached info."""
|
||||
"""Call entity.async_restore_state with cached info."""
|
||||
if entity.hass.state not in (CoreState.starting, CoreState.not_running):
|
||||
_LOGGER.debug("Not restoring state for %s: Hass is not starting: %s",
|
||||
entity.entity_id, entity.hass.state)
|
||||
|
||||
Reference in New Issue
Block a user