Skip to content

Commit

Permalink
fixed bug in habapp_rules.actors.shading.ResetAllManualHand
Browse files Browse the repository at this point in the history
  • Loading branch information
nobbi1991 committed Oct 17, 2023
1 parent a7e4cc6 commit 2135d74
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
# Version 5.2.1 - 17.10.2023

## Bugfix

- fixed bug in ``habapp_rules.actors.shading.ResetAllManualHand`` which did not reset all shading objects if triggered via KNX

# Version 5.2.0 - 10.10.2023

## Features
Expand Down
2 changes: 1 addition & 1 deletion habapp_rules/actors/shading.py
Original file line number Diff line number Diff line change
Expand Up @@ -641,7 +641,7 @@ def __init__(self, name_reset_manual_hand: str) -> None:
"""
HABApp.Rule.__init__(self)
self._item_reset = HABApp.openhab.items.SwitchItem.get_item(name_reset_manual_hand)
self._item_reset.listen_event(self._cb_reset_all, HABApp.openhab.events.ItemCommandEventFilter())
self._item_reset.listen_event(self._cb_reset_all, HABApp.openhab.events.ItemStateUpdatedEventFilter())

def __get_shading_objects(self) -> list[type(_ShadingBase)]:
"""Get all shading objects.
Expand Down

0 comments on commit 2135d74

Please sign in to comment.