Removed unnecessary dps from covers; reduced cache timeout for covers and lights

This commit is contained in:
rospogrigio
2020-09-07 12:07:20 +02:00
parent 528143ddd6
commit 3d0505ac41
2 changed files with 2 additions and 4 deletions

View File

@@ -124,7 +124,7 @@ class TuyaCache:
self._lock.acquire()
try:
now = time()
if not self._cached_status or now - self._cached_status_time > 30:
if not self._cached_status or now - self._cached_status_time > 15:
sleep(0.5)
self._cached_status = self.__get_status(switchid)
self._cached_status_time = time()