From 3261e9f78c310525172902e73fd6fcaba3daf7b4 Mon Sep 17 00:00:00 2001 From: Bas Nijholt Date: Sat, 29 Jul 2023 12:34:45 -0700 Subject: [PATCH] indentation --- custom_components/adaptive_lighting/switch.py | 20 +++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/custom_components/adaptive_lighting/switch.py b/custom_components/adaptive_lighting/switch.py index 7629a82a..35a53076 100644 --- a/custom_components/adaptive_lighting/switch.py +++ b/custom_components/adaptive_lighting/switch.py @@ -2059,20 +2059,20 @@ class AdaptiveLightingManager: transition=transition, force=True, ) + if skipped: # Modify the service data inplace modify_service_data(data, skipped) if not has_intercepted: - pass # The call will be intercepted with the modified data - else: - # Call light turn_on service for skipped entities - await self.hass.services.async_call( - LIGHT_DOMAIN, - SERVICE_TURN_ON, - data, - blocking=True, - context=call.context, - ) + return # The call will be intercepted with the modified data + # Call light turn_on service for skipped entities + await self.hass.services.async_call( + LIGHT_DOMAIN, + SERVICE_TURN_ON, + data, + blocking=True, + context=call.context, + ) async def _service_interceptor_turn_on_single_light_handler( self,