J. Nick Koston 2 年之前
父節點
當前提交
e685259ef2
共有 2 個文件被更改,包括 4 次插入2 次删除
  1. 1 2
      switchbot/devices/bulb.py
  2. 3 0
      switchbot/devices/device.py

+ 1 - 2
switchbot/devices/bulb.py

@@ -79,9 +79,8 @@ class SwitchbotBulb(SwitchbotDevice):
         """Return maximum color temp."""
         return 6500
 
-    async def update(self, interface: int | None = None) -> None:
+    async def update(self) -> None:
         """Update state of device."""
-        _LOGGER.debug("%s: Updating bulb state", self.name)
         result = await self._sendcommand(BULB_REQUEST)
         self._update_state(result)
 

+ 3 - 0
switchbot/devices/device.py

@@ -392,3 +392,6 @@ class SwitchbotDevice:
             self._callbacks.remove(callback)
 
         return _unsub
+
+    async def update(self) -> None:
+        """Update state of device."""