Set strict typing for myuplink (#132972)

Set strict typing
This commit is contained in:
Åke Strandberg 2024-12-11 23:11:11 +01:00 committed by GitHub
parent 4c5965ffc9
commit 95f48963d4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 5 additions and 3 deletions

View File

@ -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)

View File

@ -95,4 +95,4 @@ rules:
# Platinum
async-dependency: done
inject-websession: done
strict-typing: todo
strict-typing: done