瀏覽代碼

fix: cleanup some debug log messages (#94)

J. Nick Koston 2 年之前
父節點
當前提交
dc97b48bd7
共有 2 個文件被更改,包括 2 次插入6 次删除
  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,
             "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()