1
mirror of https://github.com/home-assistant/core synced 2024-10-13 14:52:10 +02:00

Simplify hass data in acmeda (#62479)

This commit is contained in:
Robert Hillis 2022-01-23 10:04:36 -05:00 committed by GitHub
parent e74fe0e390
commit 53c39293a4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -18,9 +18,7 @@ async def async_setup_entry(hass: HomeAssistant, config_entry: ConfigEntry) -> b
if not await hub.async_setup():
return False
hass.data.setdefault(DOMAIN, {})
hass.data[DOMAIN][config_entry.entry_id] = hub
hass.data.setdefault(DOMAIN, {})[config_entry.entry_id] = hub
hass.config_entries.async_setup_platforms(config_entry, PLATFORMS)
return True