Skip to content

Commit

Permalink
Add more logging
Browse files Browse the repository at this point in the history
  • Loading branch information
tomasbedrich committed Dec 30, 2020
1 parent 9326337 commit 7f16542
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions custom_components/skydance/light.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,7 @@ async def _turn_on(self):
self._is_on = True

async def _set_brightness(self, brightness):
_LOGGER.debug("Setting brightness=%d for zone=%s", brightness, self.unique_id)
cmd = BrightnessCommand(
self._state, zone=self._zone_num, brightness=brightness
).raw
Expand All @@ -164,6 +165,7 @@ async def _set_brightness(self, brightness):
self._brightness = brightness

async def _set_color_temp(self, color_temp):
_LOGGER.debug("Setting color_temp=%d for zone=%s", color_temp, self.unique_id)
temperature_byte = self._convert_color_temp(color_temp)
cmd = TemperatureCommand(
self._state, zone=self._zone_num, temperature=temperature_byte
Expand Down

0 comments on commit 7f16542

Please sign in to comment.