From 343b8fb0325eb2c6da5d43945709858456c7f2fb Mon Sep 17 00:00:00 2001 From: basbruss <68892092+basbruss@users.noreply.github.com> Date: Sun, 28 Apr 2024 21:04:15 +0200 Subject: [PATCH] correct arguments --- custom_components/adaptive_cover/coordinator.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/custom_components/adaptive_cover/coordinator.py b/custom_components/adaptive_cover/coordinator.py index 0f63d81..4d71955 100644 --- a/custom_components/adaptive_cover/coordinator.py +++ b/custom_components/adaptive_cover/coordinator.py @@ -303,7 +303,9 @@ def get_blind_data(self): def after_start_time(self): """Check if time is after start time.""" if self.start_time_entity is not None: - time = get_datetime_from_state(get_safe_state(self.start_time_entity)) + time = get_datetime_from_state( + get_safe_state(self.hass, self.start_time_entity) + ) now = dt.datetime.now(dt.UTC) if now.date() == time.date(): return now >= time