Handle 3.4 protocol, fix CI (#1251)

* Use refresh interval in version 3.4
* Scan interval convert to integer
* Try to fix CI
* Try to fix CI
This commit is contained in:
dulyts
2023-09-12 13:24:39 +02:00
committed by GitHub
parent f06e4848e6
commit 25105427b8
5 changed files with 79 additions and 7 deletions

View File

@@ -817,7 +817,7 @@ class TuyaProtocol(asyncio.Protocol, ContextualLogger):
Args:
dps([int]): list of dps to update, default=detected&whitelisted
"""
if self.version in [3.2, 3.3]: # 3.2 behaves like 3.3 with type_0d
if self.version in [3.2, 3.3, 3.4]: # 3.2 behaves like 3.3 with type_0d
if dps is None:
if not self.dps_cache:
await self.detect_available_dps()