From b4138c7827df9106fe54ac750764f229743c3fe7 Mon Sep 17 00:00:00 2001 From: bedaes Date: Sat, 11 Dec 2021 22:01:26 +0100 Subject: [PATCH] Fix tuple expression in type annotation --- custom_components/adaptive_lighting/switch.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/custom_components/adaptive_lighting/switch.py b/custom_components/adaptive_lighting/switch.py index af826196..7e023134 100755 --- a/custom_components/adaptive_lighting/switch.py +++ b/custom_components/adaptive_lighting/switch.py @@ -1074,7 +1074,7 @@ class SunLightSettings: def calculate_noon_and_midnight( sunset: datetime.datetime, sunrise: datetime.datetime - ) -> (datetime.datetime, datetime.datetime): + ) -> Tuple[datetime.datetime, datetime.datetime]: middle = abs(sunset - sunrise) / 2 if sunset > sunrise: noon = sunrise + middle