Use typed config entry everywhere in Trafikverket Train (#134303)

This commit is contained in:
G Johansson 2024-12-30 23:17:21 +01:00 committed by GitHub
parent 428a74fa48
commit a9949a0aab
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -37,13 +37,13 @@ async def async_setup_entry(hass: HomeAssistant, entry: TVTrainConfigEntry) -> b
return True
async def async_unload_entry(hass: HomeAssistant, entry: ConfigEntry) -> bool:
async def async_unload_entry(hass: HomeAssistant, entry: TVTrainConfigEntry) -> bool:
"""Unload Trafikverket Weatherstation config entry."""
return await hass.config_entries.async_unload_platforms(entry, PLATFORMS)
async def update_listener(hass: HomeAssistant, entry: ConfigEntry) -> None:
async def update_listener(hass: HomeAssistant, entry: TVTrainConfigEntry) -> None:
"""Handle options update."""
await hass.config_entries.async_reload(entry.entry_id)