Explorar el Código

Fire callbacks after updating lock status (#168)

Damian Sypniewski hace 2 años
padre
commit
899851d224
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  1. 1 0
      switchbot/devices/lock.py

+ 1 - 0
switchbot/devices/lock.py

@@ -164,6 +164,7 @@ class SwitchbotLock(SwitchbotDevice):
             asyncio.create_task(self._disable_notifications())
 
         self._update_parsed_data(lock_data)
+        self._fire_callbacks()
 
     @staticmethod
     def _parse_lock_data(data: bytes) -> dict[str, Any]: