1
0
mirror of https://github.com/home-assistant/core.git synced 2026-05-08 17:49:37 +01:00

Improve type hints in igloohome lock (#163795)

This commit is contained in:
epenet
2026-02-22 17:13:14 +01:00
committed by GitHub
parent 15d0241158
commit 11edd214a1
+4 -3
View File
@@ -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(