Skip to content

Commit

Permalink
Set strict typing for myuplink (home-assistant#132972)
Browse files Browse the repository at this point in the history
Set strict typing
  • Loading branch information
astrandb authored Dec 11, 2024
1 parent 4c5965f commit 95f4896
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions homeassistant/components/myuplink/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion homeassistant/components/myuplink/quality_scale.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -95,4 +95,4 @@ rules:
# Platinum
async-dependency: done
inject-websession: done
strict-typing: todo
strict-typing: done

0 comments on commit 95f4896

Please sign in to comment.