Automation: initial state > restore state (#6911)

* Automation: initial state > restore state

* Clean up code

* Ensure MQTT defaults are used.

* Ensure failed platforms always return None

* Automation: write state to state machine after start
This commit is contained in:
Paulus Schoutsen
2017-04-03 23:11:39 -07:00
committed by GitHub
parent 3895979e39
commit 23645da74c
4 changed files with 235 additions and 103 deletions

View File

@@ -253,7 +253,7 @@ def async_prepare_setup_platform(hass: core.HomeAssistant, config, domain: str,
if not dep_success:
log_error('Could not setup all dependencies.')
return False
return None
if not hass.config.skip_pip and hasattr(platform, 'REQUIREMENTS'):
req_success = yield from _async_process_requirements(