Explorar o código

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

ahori %!s(int64=3) %!d(string=hai) anos
pai
achega
8a771a4068
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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()