mirror of
https://github.com/home-assistant/core.git
synced 2025-07-27 07:07:28 +00:00
Remove unused argument from DWD coordinator (#116496)
This commit is contained in:
parent
7a10959e58
commit
ac608ef86a
@ -11,7 +11,7 @@ from .coordinator import DwdWeatherWarningsCoordinator
|
|||||||
|
|
||||||
async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry) -> bool:
|
async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry) -> bool:
|
||||||
"""Set up a config entry."""
|
"""Set up a config entry."""
|
||||||
coordinator = DwdWeatherWarningsCoordinator(hass, entry)
|
coordinator = DwdWeatherWarningsCoordinator(hass)
|
||||||
await coordinator.async_config_entry_first_refresh()
|
await coordinator.async_config_entry_first_refresh()
|
||||||
|
|
||||||
hass.data.setdefault(DOMAIN, {})[entry.entry_id] = coordinator
|
hass.data.setdefault(DOMAIN, {})[entry.entry_id] = coordinator
|
||||||
|
@ -26,7 +26,7 @@ class DwdWeatherWarningsCoordinator(DataUpdateCoordinator[None]):
|
|||||||
config_entry: ConfigEntry
|
config_entry: ConfigEntry
|
||||||
api: DwdWeatherWarningsAPI
|
api: DwdWeatherWarningsAPI
|
||||||
|
|
||||||
def __init__(self, hass: HomeAssistant, entry: ConfigEntry) -> None:
|
def __init__(self, hass: HomeAssistant) -> None:
|
||||||
"""Initialize the dwd_weather_warnings coordinator."""
|
"""Initialize the dwd_weather_warnings coordinator."""
|
||||||
super().__init__(
|
super().__init__(
|
||||||
hass, LOGGER, name=DOMAIN, update_interval=DEFAULT_SCAN_INTERVAL
|
hass, LOGGER, name=DOMAIN, update_interval=DEFAULT_SCAN_INTERVAL
|
||||||
|
Loading…
x
Reference in New Issue
Block a user