J. Nick Koston 2 years ago
parent
commit
e685259ef2
2 changed files with 4 additions and 2 deletions
  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."""