From fb2bdcb1d0469a560c70f892669dc6d8709d7836 Mon Sep 17 00:00:00 2001 From: nobbi1991 <48419518+nobbi1991@users.noreply.github.com> Date: Sat, 30 Nov 2024 22:28:42 +0100 Subject: [PATCH] added check at init --- habapp_rules/sensors/sun.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/habapp_rules/sensors/sun.py b/habapp_rules/sensors/sun.py index 856dda1..db796e4 100644 --- a/habapp_rules/sensors/sun.py +++ b/habapp_rules/sensors/sun.py @@ -279,6 +279,8 @@ def __init__(self, config: habapp_rules.sensors.config.sun.WinterFilterConfig) - if config.items.presence_state is not None: config.items.presence_state.listen_event(self.cb_presence_state, HABApp.openhab.events.ItemStateChangedEventFilter()) + self._check_conditions_and_set_output() + def _check_conditions_and_set_output(self) -> None: """Check conditions and set output.