From dee9dd10f8acd4a9b9f23ee186a45e2e7886cdf0 Mon Sep 17 00:00:00 2001 From: Bas Nijholt Date: Thu, 3 Sep 2020 23:56:48 +0200 Subject: [PATCH] run black --- custom_components/circadian_lighting/switch.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/custom_components/circadian_lighting/switch.py b/custom_components/circadian_lighting/switch.py index 953374b0..879fdf04 100755 --- a/custom_components/circadian_lighting/switch.py +++ b/custom_components/circadian_lighting/switch.py @@ -336,9 +336,11 @@ class CircadianSwitch(SwitchEntity, RestoreEntity): if service_data.get(ATTR_BRIGHTNESS, False): service_data[ATTR_WHITE_VALUE] = service_data[ATTR_BRIGHTNESS] - tasks.append(self.hass.services.async_call( - LIGHT_DOMAIN, SERVICE_TURN_ON, service_data - )) + tasks.append( + self.hass.services.async_call( + LIGHT_DOMAIN, SERVICE_TURN_ON, service_data + ) + ) if tasks: await asyncio.wait(tasks)