Przeglądaj źródła

Correct spelling of acquire

Jason Rumney 6 lat temu
rodzic
commit
cc6fba50db
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      custom_components/tuya_local/device.py

+ 1 - 1
custom_components/tuya_local/device.py

@@ -123,7 +123,7 @@ class TuyaLocalDevice(object):
     async def async_refresh(self):
         last_updated = self._get_cached_state()["updated_at"]
         try:
-            self._lock.aquire()
+            self._lock.acquire()
             if self._refresh_task is None or time() - last_updated >= self._CACHE_TIMEOUT:
                 self._cached_state["updated_at"] = time()
                 self._refresh_task = self._hass.async_add_executor_job(self.refresh)