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
2 changed files with 5 additions and 3 deletions

View File

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

View File

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