From ae4ae1610625035a3439b07cc7031466bf18e97b Mon Sep 17 00:00:00 2001 From: tr4nt0r <4445816+tr4nt0r@users.noreply.github.com> Date: Fri, 29 Nov 2024 11:09:45 +0100 Subject: [PATCH 1/2] Add missing unit of measurement for _TZE200_pay2byax --- zhaquirks/tuya/ts0601_sensor.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/zhaquirks/tuya/ts0601_sensor.py b/zhaquirks/tuya/ts0601_sensor.py index 66113fd353..2787b9b5bf 100644 --- a/zhaquirks/tuya/ts0601_sensor.py +++ b/zhaquirks/tuya/ts0601_sensor.py @@ -1,6 +1,6 @@ """Tuya temp and humidity sensors.""" -from zigpy.quirks.v2.homeassistant import EntityType +from zigpy.quirks.v2.homeassistant import LIGHT_LUX, EntityType from zigpy.quirks.v2.homeassistant.binary_sensor import BinarySensorDeviceClass from zigpy.quirks.v2.homeassistant.sensor import SensorDeviceClass, SensorStateClass import zigpy.types as t @@ -89,6 +89,7 @@ fallback_name="Illuminance", device_class=SensorDeviceClass.ILLUMINANCE, state_class=SensorStateClass.MEASUREMENT, + unit=LIGHT_LUX ) .tuya_binary_sensor( dp_id=1, From ab8c4839a9648b454232a1cb4fb53f985d22fe32 Mon Sep 17 00:00:00 2001 From: tr4nt0r <4445816+tr4nt0r@users.noreply.github.com> Date: Fri, 29 Nov 2024 11:52:55 +0100 Subject: [PATCH 2/2] Add missing unit to _TZE200_pay2byax quirk --- zhaquirks/tuya/ts0601_sensor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zhaquirks/tuya/ts0601_sensor.py b/zhaquirks/tuya/ts0601_sensor.py index 2787b9b5bf..4bd9798bfa 100644 --- a/zhaquirks/tuya/ts0601_sensor.py +++ b/zhaquirks/tuya/ts0601_sensor.py @@ -89,7 +89,7 @@ fallback_name="Illuminance", device_class=SensorDeviceClass.ILLUMINANCE, state_class=SensorStateClass.MEASUREMENT, - unit=LIGHT_LUX + unit=LIGHT_LUX, ) .tuya_binary_sensor( dp_id=1,