Explorar el Código

Correct spelling of acquire

Jason Rumney hace 6 años
padre
commit
cc6fba50db
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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)