Remove uneeded update listener from Idasen (#151243)

This commit is contained in:
Abílio Costa
2025-08-27 17:22:34 +01:00
committed by GitHub
parent 669527b1e9
commit dad96598a3

View File

@@ -34,7 +34,6 @@ async def async_setup_entry(hass: HomeAssistant, entry: IdasenDeskConfigEntry) -
raise ConfigEntryNotReady(f"Unable to connect to desk {address}") from ex
await hass.config_entries.async_forward_entry_setups(entry, PLATFORMS)
entry.async_on_unload(entry.add_update_listener(_async_update_listener))
@callback
def _async_bluetooth_callback(
@@ -64,13 +63,6 @@ async def async_setup_entry(hass: HomeAssistant, entry: IdasenDeskConfigEntry) -
return True
async def _async_update_listener(
hass: HomeAssistant, entry: IdasenDeskConfigEntry
) -> None:
"""Handle options update."""
await hass.config_entries.async_reload(entry.entry_id)
async def async_unload_entry(hass: HomeAssistant, entry: IdasenDeskConfigEntry) -> bool:
"""Unload a config entry."""
if unload_ok := await hass.config_entries.async_unload_platforms(entry, PLATFORMS):