diff --git a/.strict-typing b/.strict-typing index 22a619dde69..669e96e8bb0 100644 --- a/.strict-typing +++ b/.strict-typing @@ -420,6 +420,7 @@ homeassistant.components.vlc_telnet.* homeassistant.components.wake_on_lan.* homeassistant.components.wake_word.* homeassistant.components.wallbox.* +homeassistant.components.waqi.* homeassistant.components.water_heater.* homeassistant.components.watttime.* homeassistant.components.weather.* diff --git a/homeassistant/components/waqi/__init__.py b/homeassistant/components/waqi/__init__.py index d3cf1af21a2..d4e41095b26 100644 --- a/homeassistant/components/waqi/__init__.py +++ b/homeassistant/components/waqi/__init__.py @@ -47,7 +47,7 @@ async def _migrate_unique_ids(hass: HomeAssistant, entry: ConfigEntry) -> None: entity_registry, entry.entry_id ) for reg_entry in registry_entries: - if isinstance(reg_entry.unique_id, int): - entity_registry.async_update_entity( + if isinstance(reg_entry.unique_id, int): # type: ignore[unreachable] + entity_registry.async_update_entity( # type: ignore[unreachable] reg_entry.entity_id, new_unique_id=f"{reg_entry.unique_id}_air_quality" ) diff --git a/mypy.ini b/mypy.ini index dbcaf3a840d..0152db2a1ae 100644 --- a/mypy.ini +++ b/mypy.ini @@ -3963,6 +3963,16 @@ disallow_untyped_defs = true warn_return_any = true warn_unreachable = true +[mypy-homeassistant.components.waqi.*] +check_untyped_defs = true +disallow_incomplete_defs = true +disallow_subclassing_any = true +disallow_untyped_calls = true +disallow_untyped_decorators = true +disallow_untyped_defs = true +warn_return_any = true +warn_unreachable = true + [mypy-homeassistant.components.water_heater.*] check_untyped_defs = true disallow_incomplete_defs = true