mirror of
https://github.com/home-assistant/core.git
synced 2025-04-23 00:37:53 +00:00
parent
4c5965ffc9
commit
95f48963d4
@ -77,14 +77,16 @@ async def async_setup_entry(
|
||||
return True
|
||||
|
||||
|
||||
async def async_unload_entry(hass: HomeAssistant, entry: ConfigEntry) -> bool:
|
||||
async def async_unload_entry(hass: HomeAssistant, entry: MyUplinkConfigEntry) -> bool:
|
||||
"""Unload a config entry."""
|
||||
return await hass.config_entries.async_unload_platforms(entry, PLATFORMS)
|
||||
|
||||
|
||||
@callback
|
||||
def create_devices(
|
||||
hass: HomeAssistant, config_entry: ConfigEntry, coordinator: MyUplinkDataCoordinator
|
||||
hass: HomeAssistant,
|
||||
config_entry: MyUplinkConfigEntry,
|
||||
coordinator: MyUplinkDataCoordinator,
|
||||
) -> None:
|
||||
"""Update all devices."""
|
||||
device_registry = dr.async_get(hass)
|
||||
|
@ -95,4 +95,4 @@ rules:
|
||||
# Platinum
|
||||
async-dependency: done
|
||||
inject-websession: done
|
||||
strict-typing: todo
|
||||
strict-typing: done
|
||||
|
Loading…
x
Reference in New Issue
Block a user