Fix code format issue in Yale Smart Alarm (#87323)

fixes undefined
This commit is contained in:
G Johansson 2023-02-03 20:04:51 +01:00 committed by GitHub
parent e794dd0078
commit 96128340a0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -45,7 +45,7 @@ class YaleDoorlock(YaleEntity, LockEntity):
) -> None:
"""Initialize the Yale Lock Device."""
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"]
async def async_unlock(self, **kwargs: Any) -> None: