mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 21:27:38 +00:00
parent
e794dd0078
commit
96128340a0
@ -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