Fix rachio import of run time from yaml (#33723)

Importing from yaml would fail for rachio when
copying the manual run time to the option flow.
This commit is contained in:
J. Nick Koston authored and Paulus Schoutsen committed 2020-04-06 10:26:12 -07:00
1 parent 49dc7ffb5b
commit 565b54d852
1 file changed
+1 -1
+1 -1
View File
@@ -86,7 +86,7 @@ async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry):
if not options.get(CONF_MANUAL_RUN_MINS) and config.get(CONF_MANUAL_RUN_MINS):
options_copy = options.copy()
options_copy[CONF_MANUAL_RUN_MINS] = config[CONF_MANUAL_RUN_MINS]
hass.config_entries.async_update_entry(options=options_copy)
hass.config_entries.async_update_entry(entry, options=options_copy)
# Configure API
api_key = config[CONF_API_KEY]