Ver Fonte

undo device.py change and rmove smoke_co device setting

ahori há 2 anos atrás
pai
commit
ea5d01f7a8

+ 1 - 1
custom_components/tuya_local/device.py

@@ -345,7 +345,7 @@ class TuyaLocalDevice(object):
             # devices have dp 1. Lights generally start from 20.  101 is where
             # devices have dp 1. Lights generally start from 20.  101 is where
             # vendor specific dps start.  Between them, these three should cover
             # vendor specific dps start.  Between them, these three should cover
             # most devices.
             # most devices.
-            self._api.set_dpsUsed({"1": None, "2": None, "20": None, "101": None})
+            self._api.set_dpsUsed({"1": None, "20": None, "101": None})
             await self.async_refresh()
             await self.async_refresh()
             cached_state = self._get_cached_state()
             cached_state = self._get_cached_state()
 
 

+ 0 - 14
custom_components/tuya_local/devices/smoke_co.yaml

@@ -1,14 +0,0 @@
-name: Smoke (and CO) Detector
-primary_entity:
-  entity: binary_sensor
-  name: Smoke
-  icon: mdi:smoke-detector
-  dps:
-    - id: 1
-      type: boolean
-      name: binary_sensor
-      mapping:
-        - dps_val: normal
-	  value: false
-        - dps_val: alarm
-	  value: true