Skip to content
Snippets Groups Projects
Commit 4e403949 authored by Maciej Bieniek's avatar Maciej Bieniek Committed by Martin Hjelmare
Browse files

Fix Airly if more than one config entry (#28498)

parent 9b038bd1
No related branches found
No related tags found
No related merge requests found
...@@ -31,6 +31,8 @@ DEFAULT_SCAN_INTERVAL = timedelta(minutes=10) ...@@ -31,6 +31,8 @@ DEFAULT_SCAN_INTERVAL = timedelta(minutes=10)
async def async_setup(hass: HomeAssistant, config: Config) -> bool: async def async_setup(hass: HomeAssistant, config: Config) -> bool:
"""Set up configured Airly.""" """Set up configured Airly."""
hass.data[DOMAIN] = {}
hass.data[DOMAIN][DATA_CLIENT] = {}
return True return True
...@@ -49,8 +51,6 @@ async def async_setup_entry(hass, config_entry): ...@@ -49,8 +51,6 @@ async def async_setup_entry(hass, config_entry):
if not airly.data: if not airly.data:
raise ConfigEntryNotReady() raise ConfigEntryNotReady()
hass.data[DOMAIN] = {}
hass.data[DOMAIN][DATA_CLIENT] = {}
hass.data[DOMAIN][DATA_CLIENT][config_entry.entry_id] = airly hass.data[DOMAIN][DATA_CLIENT][config_entry.entry_id] = airly
hass.async_create_task( hass.async_create_task(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment