Bläddra i källkod

Fire callbacks after updating lock status (#168)

Damian Sypniewski 2 år sedan
förälder
incheckning
899851d224
1 ändrade filer med 1 tillägg och 0 borttagningar
  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]: