Skip to content

Commit dc97b48

Browse files
authored
fix: cleanup some debug log messages (#94)
1 parent 39cceeb commit dc97b48

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

switchbot/devices/bulb.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,5 @@ def _update_state(self, result: bytes | None) -> None:
100100
"isOn": result[1] == 0x80,
101101
"color_mode": result[10],
102102
}
103-
_LOGGER.debug(
104-
"%s: Bulb update state: %s = %s", self.name, result.hex(), self._state
105-
)
103+
_LOGGER.debug("%s: update state: %s = %s", self.name, result.hex(), self._state)
106104
self._fire_callbacks()

switchbot/devices/light_strip.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,5 @@ def _update_state(self, result: bytes | None) -> None:
8585
"isOn": result[1] == 0x80,
8686
"color_mode": result[10],
8787
}
88-
_LOGGER.debug(
89-
"%s: Bulb update state: %s = %s", self.name, result.hex(), self._state
90-
)
88+
_LOGGER.debug("%s: update state: %s = %s", self.name, result.hex(), self._state)
9189
self._fire_callbacks()

0 commit comments

Comments
 (0)