Skip to content

Commit

Permalink
Update __init__.py
Browse files Browse the repository at this point in the history
Fixed #199
  • Loading branch information
jwillemsen authored and rospogrigio committed Jan 11, 2024
1 parent 7d66498 commit adf288c
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions custom_components/daikin_residential/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,18 +95,17 @@ async def async_setup_entry(hass: HomeAssistantType, entry: ConfigEntry):
async def async_unload_entry(hass, config_entry):
"""Unload a config entry."""
_LOGGER.debug("Unloading integration...")
await asyncio.wait(
[
await asyncio.gather(
*(
hass.config_entries.async_forward_entry_unload(config_entry, component)
for component in COMPONENT_TYPES
]
)
)
hass.data[DOMAIN].clear()
if not hass.data[DOMAIN]:
hass.data.pop(DOMAIN)
return True


async def daikin_api_setup(hass, host, key, uuid, password):
"""Create a Daikin instance only once."""
return

0 comments on commit adf288c

Please sign in to comment.