From 11edd214a18be8526f5f3ea99b04b277d64a5465 Mon Sep 17 00:00:00 2001 From: epenet <6771947+epenet@users.noreply.github.com> Date: Sun, 22 Feb 2026 17:13:14 +0100 Subject: [PATCH] Improve type hints in igloohome lock (#163795) --- homeassistant/components/igloohome/lock.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/homeassistant/components/igloohome/lock.py b/homeassistant/components/igloohome/lock.py index b434c055145..dc79bba9c63 100644 --- a/homeassistant/components/igloohome/lock.py +++ b/homeassistant/components/igloohome/lock.py @@ -1,6 +1,7 @@ """Implementation of the lock platform.""" from datetime import timedelta +from typing import Any from aiohttp import ClientError from igloohome_api import ( @@ -63,7 +64,7 @@ class IgloohomeLockEntity(IgloohomeBaseEntity, LockEntity): ) self.bridge_id = bridge_id - async def async_lock(self, **kwargs): + async def async_lock(self, **kwargs: Any) -> None: """Lock this lock.""" try: await self.api.create_bridge_proxied_job( @@ -72,7 +73,7 @@ class IgloohomeLockEntity(IgloohomeBaseEntity, LockEntity): except (ApiException, ClientError) as err: raise HomeAssistantError from err - async def async_unlock(self, **kwargs): + async def async_unlock(self, **kwargs: Any) -> None: """Unlock this lock.""" try: await self.api.create_bridge_proxied_job( @@ -81,7 +82,7 @@ class IgloohomeLockEntity(IgloohomeBaseEntity, LockEntity): except (ApiException, ClientError) as err: raise HomeAssistantError from err - async def async_open(self, **kwargs): + async def async_open(self, **kwargs: Any) -> None: """Open (unlatch) this lock.""" try: await self.api.create_bridge_proxied_job(