Browse Source

fix: cleanup some debug log messages

J. Nick Koston 2 năm trước cách đây
mục cha
commit
b6c07deae8

+ 1 - 3
switchbot/devices/bulb.py

@@ -100,7 +100,5 @@ class SwitchbotBulb(SwitchbotBaseLight):
             "isOn": result[1] == 0x80,
             "isOn": result[1] == 0x80,
             "color_mode": result[10],
             "color_mode": result[10],
         }
         }
-        _LOGGER.debug(
-            "%s: Bulb update state: %s = %s", self.name, result.hex(), self._state
-        )
+        _LOGGER.debug("%s: update state: %s = %s", self.name, result.hex(), self._state)
         self._fire_callbacks()
         self._fire_callbacks()

+ 1 - 3
switchbot/devices/light_strip.py

@@ -85,7 +85,5 @@ class SwitchbotLightStrip(SwitchbotBaseLight):
             "isOn": result[1] == 0x80,
             "isOn": result[1] == 0x80,
             "color_mode": result[10],
             "color_mode": result[10],
         }
         }
-        _LOGGER.debug(
-            "%s: Bulb update state: %s = %s", self.name, result.hex(), self._state
-        )
+        _LOGGER.debug("%s: update state: %s = %s", self.name, result.hex(), self._state)
         self._fire_callbacks()
         self._fire_callbacks()