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