Use typed ConfigEntry in discovergy (#131891)

This commit is contained in:
epenet 2024-11-29 20:28:18 +01:00 committed by GitHub
parent 87020e8945
commit aa206c7608
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -60,11 +60,11 @@ async def async_setup_entry(hass: HomeAssistant, entry: DiscovergyConfigEntry) -
return True
async def async_unload_entry(hass: HomeAssistant, entry: ConfigEntry) -> bool:
async def async_unload_entry(hass: HomeAssistant, entry: DiscovergyConfigEntry) -> bool:
"""Unload a config entry."""
return await hass.config_entries.async_unload_platforms(entry, PLATFORMS)
async def async_reload_entry(hass: HomeAssistant, entry: ConfigEntry) -> None:
async def async_reload_entry(hass: HomeAssistant, entry: DiscovergyConfigEntry) -> None:
"""Handle an options update."""
await hass.config_entries.async_reload(entry.entry_id)