ZHA Add entities for Lidl water valve quirk (#72307)

* init

* added timer number entity

* added write attribute button entity

* fixed missed errors

* minor changes & fixed failing test

* removed icon

* unit and icons
This commit is contained in:
rforro 2022-05-25 01:56:03 +02:00 committed by GitHub
parent 7aca007a9a
commit db815a7504
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 204 additions and 1 deletions

View file

@ -171,3 +171,16 @@ class IASZone(BinarySensor):
value = await self._channel.get_attribute_value("zone_status")
if value is not None:
self._state = value & 3
@MULTI_MATCH(
channel_names="tuya_manufacturer",
manufacturers={
"_TZE200_htnnfasr",
},
)
class FrostLock(BinarySensor, id_suffix="frost_lock"):
"""ZHA BinarySensor."""
SENSOR_ATTR = "frost_lock"
_attr_device_class: BinarySensorDeviceClass = BinarySensorDeviceClass.LOCK