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:
parent
7aca007a9a
commit
db815a7504
5 changed files with 204 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue