Skip to content

Commit

Permalink
Merge pull request #97 from nobbi1991/winter_sun_protection
Browse files Browse the repository at this point in the history
added check at init
  • Loading branch information
nobbi1991 authored Nov 30, 2024
2 parents e64967c + fb2bdcb commit 77a0c21
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions habapp_rules/sensors/sun.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 77a0c21

Please sign in to comment.