mirror of
https://github.com/home-assistant/core.git
synced 2025-08-01 09:38:21 +00:00
parent
6d2a2b1c91
commit
fe7c7001ad
@ -45,7 +45,7 @@ class YaleDoorlock(YaleEntity, LockEntity):
|
|||||||
) -> None:
|
) -> None:
|
||||||
"""Initialize the Yale Lock Device."""
|
"""Initialize the Yale Lock Device."""
|
||||||
super().__init__(coordinator, data)
|
super().__init__(coordinator, data)
|
||||||
self._attr_code_format = f"^\\d{code_format}$"
|
self._attr_code_format = rf"^\d{{{code_format}}}$"
|
||||||
self.lock_name: str = data["name"]
|
self.lock_name: str = data["name"]
|
||||||
|
|
||||||
async def async_unlock(self, **kwargs: Any) -> None:
|
async def async_unlock(self, **kwargs: Any) -> None:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user