diff --git a/custom_components/adaptive_lighting/switch.py b/custom_components/adaptive_lighting/switch.py index f2271b35..92d77649 100644 --- a/custom_components/adaptive_lighting/switch.py +++ b/custom_components/adaptive_lighting/switch.py @@ -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: @@ -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