소스 검색

Fire callbacks after updating lock status (#168)

Damian Sypniewski 2 년 전
부모
커밋
899851d224
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  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]: