Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fixed bug #29

Merged
merged 1 commit into from
Nov 30, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
# Version 5.3.1 - 30.11.2023

## Bugfix

- fixed bug in ``habapp_rules.core.state_machine_rule.on_rule_removed`` which did not remove rules which have a hierarchical state machine

# Version 5.3.0 - 21.11.2023

## Features
Expand Down
2 changes: 1 addition & 1 deletion habapp_rules/__version__.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
"""Set version for the package."""
__version__ = "5.3.0"
__version__ = "5.3.1"
2 changes: 1 addition & 1 deletion habapp_rules/core/state_machine_rule.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,6 @@ def on_rule_removed(self) -> None:
"""Override this to implement logic that will be called when the rule has been unloaded."""
# stop timeout timer of current state
if self.state_machine:
for itm in self.state_machine.states[self.state].runner.values():
for itm in self.state_machine.get_state(self.state).runner.values():
if isinstance(itm, threading.Timer) and itm.is_alive():
itm.cancel()
Loading