From 43c4b89f1e6f36666806fd943800e7f94d079dfb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B9=BE=E5=90=AF?= <18442047+tsutsuku@users.noreply.github.com> Date: Wed, 11 Aug 2021 15:23:40 +0800 Subject: [PATCH] [fix] extern bright_value sensor in dj --- custom_components/tuya_v2/sensor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/custom_components/tuya_v2/sensor.py b/custom_components/tuya_v2/sensor.py index 67e2f3a..eada9a2 100644 --- a/custom_components/tuya_v2/sensor.py +++ b/custom_components/tuya_v2/sensor.py @@ -401,7 +401,7 @@ def _setup_entities(hass, device_ids: List): ), ) ) - if DPCODE_BRIGHT_VALUE in device.status: + if DPCODE_BRIGHT_VALUE in device.status and device.category != "dj": entities.append( TuyaHaSensor( device,