Bläddra i källkod

fix: cleanup some debug log messages (#94)

J. Nick Koston 2 år sedan
förälder
incheckning
dc97b48bd7
2 ändrade filer med 2 tillägg och 6 borttagningar
  1. 1 3
      switchbot/devices/bulb.py
  2. 1 3
      switchbot/devices/light_strip.py

+ 1 - 3
switchbot/devices/bulb.py

@@ -100,7 +100,5 @@ class SwitchbotBulb(SwitchbotBaseLight):
             "isOn": result[1] == 0x80,
             "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()

+ 1 - 3
switchbot/devices/light_strip.py

@@ -85,7 +85,5 @@ class SwitchbotLightStrip(SwitchbotBaseLight):
             "isOn": result[1] == 0x80,
             "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()