Просмотр исходного кода

Adjusted battery to not have mappings

Wiseman 2 лет назад
Родитель
Сommit
69d31aea86

+ 1 - 0
DEVICES.md

@@ -617,6 +617,7 @@ port and password.
 - Nedis ZBSC10WT temperature and humidity sensor
 - Temperature and humidity sensor with alarm feature
 - ZTH08ZTU temperature and humidity sensor
+- Tuya Smart Zigbee Door Sensor
 
 NOTE: this project does not intend to expand the scope to support non-Tuya
 devices via Tuya hubs. Though it may be techincally feasible to do such a

+ 0 - 5
custom_components/tuya_local/devices/tuya_smart_zigbee_door_sensor.yaml

@@ -20,8 +20,3 @@ secondary_entities:
         optional: true
         unit: "%"
         class: measurement
-        mapping:
-          - dps_val: low
-            value: 0
-          - dps_val: high
-            value: 100