Rediscover Idasen Desk to allow re-setup (#101672)

This commit is contained in:
Abílio Costa 2023-10-08 21:03:22 +01:00 committed by GitHub
parent fb215479d4
commit 6d1876394e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -90,5 +90,6 @@ async def async_unload_entry(hass: HomeAssistant, entry: ConfigEntry) -> bool:
if unload_ok := await hass.config_entries.async_unload_platforms(entry, PLATFORMS):
data: DeskData = hass.data[DOMAIN].pop(entry.entry_id)
await data.desk.disconnect()
bluetooth.async_rediscover_address(hass, data.address)
return unload_ok