From ab50cc9e3f2613bbd8e8eae8f72135db4f48c0a2 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Sat, 17 Jan 2026 19:56:08 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- custom_components/adaptive_lighting/switch.py | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/custom_components/adaptive_lighting/switch.py b/custom_components/adaptive_lighting/switch.py index 839359d1..bd1f8e19 100644 --- a/custom_components/adaptive_lighting/switch.py +++ b/custom_components/adaptive_lighting/switch.py @@ -368,9 +368,7 @@ async def handle_apply_service(hass: HomeAssistant, service_call: ServiceCall) - switches = _switches_from_service_call(hass, service_call) lights = data[CONF_LIGHTS] for switch in switches: - all_lights = ( - switch.lights if not lights else _expand_light_groups(hass, lights) - ) + all_lights = switch.lights if not lights else _expand_light_groups(hass, lights) switch.manager.lights.update(all_lights) for light in all_lights: if data[CONF_TURN_ON_LIGHTS] or is_on(hass, light): @@ -408,9 +406,7 @@ async def handle_set_manual_control_service( switches = _switches_from_service_call(hass, service_call) lights = data[CONF_LIGHTS] for switch in switches: - all_lights = ( - switch.lights if not lights else _expand_light_groups(hass, lights) - ) + all_lights = switch.lights if not lights else _expand_light_groups(hass, lights) manual_attributes = manual_control_event_attribute_to_flags( service_call.data[CONF_MANUAL_CONTROL],