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.
pull/33727/head
J. Nick Koston 2020-04-05 17:25:31 -05:00 committed by GitHub
parent d28b477f9a
commit 15f41c84f9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

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]