Преглед изворни кода

adding co2_box and smoke sensor (still struggling ...)

ahori пре 3 година
родитељ
комит
8a771a4068
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      custom_components/tuya_local/device.py

+ 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
             # vendor specific dps start.  Between them, these three should cover
             # most devices.
-            self._api.set_dpsUsed({"1": None, "20": None, "101": None})
+            self._api.set_dpsUsed({"1": None, "2": None, "20": None, "101": None})
             await self.async_refresh()
             cached_state = self._get_cached_state()