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

Fix device_config helper, bump tinytuya to 1.10.3

Problem with last change.
Also bumped tinytuya to new release.
Jason Rumney 3 лет назад
Родитель
Сommit
9b241a20ad

+ 1 - 1
custom_components/tuya_local/helpers/device_config.py

@@ -147,7 +147,7 @@ class TuyaDeviceConfig:
         Return Value:
             True if all dps in entity could be matched to dps, False otherwise
         """
-        all = keys | matched
+        all = keys + matched
         for d in entity.dps():
             if (d.id not in all and not d.optional) or (
                 d.id in all and not _typematch(d.type, dps[d.id])

+ 1 - 1
custom_components/tuya_local/manifest.json

@@ -8,6 +8,6 @@
     "integration_type": "device",
     "iot_class": "local_push",
     "issue_tracker": "https://github.com/make-all/tuya-local/issues",
-    "requirements": ["pycryptodome~=3.17","tinytuya==1.10.2"],
+    "requirements": ["pycryptodome~=3.17","tinytuya==1.10.3"],
     "version": "2022.2.4"
 }