diff --git a/.github/workflows/publish_pypi.yml b/.github/workflows/publish_pypi.yml index 94eb8d2..fd60a89 100644 --- a/.github/workflows/publish_pypi.yml +++ b/.github/workflows/publish_pypi.yml @@ -26,7 +26,7 @@ jobs: run: | python setup.py sdist bdist_wheel - name: Publish distribution to PyPI - uses: pypa/gh-action-pypi-publish@master + uses: pypa/gh-action-pypi-publish@release/v1 with: user: __token__ password: ${{ secrets.pypi_api_key }} \ No newline at end of file diff --git a/changelog.md b/changelog.md index b03bced..9143ea5 100644 --- a/changelog.md +++ b/changelog.md @@ -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 diff --git a/habapp_rules/__version__.py b/habapp_rules/__version__.py index af98656..cb42b6c 100644 --- a/habapp_rules/__version__.py +++ b/habapp_rules/__version__.py @@ -1,2 +1,2 @@ """Set version for the package.""" -__version__ = "5.2.0" +__version__ = "5.2.1" diff --git a/habapp_rules/actors/shading.py b/habapp_rules/actors/shading.py index 4faa4da..2747f1b 100644 --- a/habapp_rules/actors/shading.py +++ b/habapp_rules/actors/shading.py @@ -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.