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

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

ahori 2 лет назад
Родитель
Сommit
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()