Forráskód Böngészése

fix: cleanup some debug log messages (#94)

J. Nick Koston 1 éve
szülő
commit
dc97b48bd7
2 módosított fájl, 2 hozzáadás és 6 törlés
  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()