Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Sep 16, 2024
1 parent 5e40647 commit d8a4f55
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions custom_components/adaptive_lighting/switch.py
Original file line number Diff line number Diff line change
Expand Up @@ -1616,9 +1616,10 @@ async def update_hue_run(self):
rtype="light",
)
light = bridge.lights.get(action.target.rid)
color_temp = clamp(color_temp,
light.color_temperature.mirek_schema.mirek_minimum,
light.color_temperature.mirek_schema.mirek_maximum,
color_temp = clamp(
color_temp,
light.color_temperature.mirek_schema.mirek_minimum,
light.color_temperature.mirek_schema.mirek_maximum,
)
action.action.color_temperature.mirek = color_temp
action.action.dimming.brightness = brightness
Expand Down

0 comments on commit d8a4f55

Please sign in to comment.