Move config option to OptionsFlow in iss (#65303)

Co-authored-by: Franck Nijhof <frenck@frenck.nl>
This commit is contained in:
Simon Hansen 2022-02-14 21:07:50 +01:00 committed by GitHub
parent 5be5a014f3
commit 7cb0ce0eec
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 102 additions and 27 deletions

View file

@ -72,8 +72,8 @@ async def async_setup_entry(
) -> None:
"""Set up the sensor platform."""
name = entry.data.get(CONF_NAME, DEFAULT_NAME)
show_on_map = entry.data.get(CONF_SHOW_ON_MAP, False)
name = entry.title
show_on_map = entry.options.get(CONF_SHOW_ON_MAP, False)
try:
iss_data = IssData(hass.config.latitude, hass.config.longitude)