Skip to content

Commit

Permalink
🚨 lint
Browse files Browse the repository at this point in the history
  • Loading branch information
BenoitAnastay committed Sep 16, 2024
1 parent e71bbef commit 30fd0d8
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions custom_components/adaptive_lighting/switch.py
Original file line number Diff line number Diff line change
Expand Up @@ -1596,7 +1596,8 @@ async def update_hue_run(self, service_data: ServiceData):
brightness = self._settings["brightness_pct"]

async with HueBridgeV2(
config_entry.data["host"], config_entry.data["api_key"]
config_entry.data["host"],
config_entry.data["api_key"]
) as bridge:
for scene in bridge.scenes:
if self.hue_keyword in scene.metadata.name:
Expand All @@ -1610,7 +1611,8 @@ async def update_hue_run(self, service_data: ServiceData):
actions = list()
for action in scene.actions:
action.target = ResourceIdentifier(
rid=action.target.rid, rtype="light"
rid=action.target.rid,
rtype="light"
)
action.action.color_temperature.mirek = color_temp
action.action.dimming.brightness = brightness
Expand Down

0 comments on commit 30fd0d8

Please sign in to comment.