Fix checks

This commit is contained in:
Andre Basche
2024-03-30 20:25:08 +01:00
parent a746584833
commit 54dd406ec2
7 changed files with 16 additions and 16 deletions
+2 -2
View File
@@ -58,7 +58,7 @@ class HonLockEntity(HonEntity, LockEntity):
setting.value = setting.max if isinstance(setting, HonParameterRange) else 1
self.async_write_ha_state()
await self._device.commands["settings"].send()
self.coordinator.async_set_updated_data(None)
self.coordinator.async_set_updated_data({})
async def async_unlock(self, **kwargs: Any) -> None:
"""Unlock method."""
@@ -68,7 +68,7 @@ class HonLockEntity(HonEntity, LockEntity):
setting.value = setting.min if isinstance(setting, HonParameterRange) else 0
self.async_write_ha_state()
await self._device.commands["settings"].send()
self.coordinator.async_set_updated_data(None)
self.coordinator.async_set_updated_data({})
@property
def available(self) -> bool: