diff --git a/.strict-typing b/.strict-typing index e764449d1d6..8e6e59c11d6 100644 --- a/.strict-typing +++ b/.strict-typing @@ -66,6 +66,7 @@ homeassistant.components.lcn.* homeassistant.components.light.* homeassistant.components.local_ip.* homeassistant.components.lock.* +homeassistant.components.lookin.* homeassistant.components.mailbox.* homeassistant.components.media_player.* homeassistant.components.modbus.* diff --git a/homeassistant/components/lookin/climate.py b/homeassistant/components/lookin/climate.py index 536d4ca4016..7bb48350eef 100644 --- a/homeassistant/components/lookin/climate.py +++ b/homeassistant/components/lookin/climate.py @@ -79,7 +79,9 @@ async def async_setup_entry( continue uuid = remote["UUID"] - def _wrap_async_update(uuid) -> Callable[[], Coroutine[None, Any, Climate]]: + def _wrap_async_update( + uuid: str, + ) -> Callable[[], Coroutine[None, Any, Climate]]: """Create a function to capture the uuid cell variable.""" async def _async_update() -> Climate: diff --git a/homeassistant/components/lookin/entity.py b/homeassistant/components/lookin/entity.py index 228d69f8341..ad532889771 100644 --- a/homeassistant/components/lookin/entity.py +++ b/homeassistant/components/lookin/entity.py @@ -26,7 +26,7 @@ def _lookin_device_to_device_info(lookin_device: Device) -> DeviceInfo: def _lookin_controlled_device_to_device_info( - lookin_device: Device, uuid: str, device: Device + lookin_device: Device, uuid: str, device: Climate | Remote ) -> DeviceInfo: return DeviceInfo( identifiers={(DOMAIN, uuid)}, diff --git a/mypy.ini b/mypy.ini index a429c04caa8..a4740a7fedc 100644 --- a/mypy.ini +++ b/mypy.ini @@ -737,6 +737,17 @@ no_implicit_optional = true warn_return_any = true warn_unreachable = true +[mypy-homeassistant.components.lookin.*] +check_untyped_defs = true +disallow_incomplete_defs = true +disallow_subclassing_any = true +disallow_untyped_calls = true +disallow_untyped_decorators = true +disallow_untyped_defs = true +no_implicit_optional = true +warn_return_any = true +warn_unreachable = true + [mypy-homeassistant.components.mailbox.*] check_untyped_defs = true disallow_incomplete_defs = true