소스 검색

fix: cleanup some debug log messages

J. Nick Koston 2 년 전
부모
커밋
b6c07deae8
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,
             "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()