From 09fa8817d53b8149daea51f528167f66c06baaff Mon Sep 17 00:00:00 2001 From: nobbi1991 <48419518+nobbi1991@users.noreply.github.com> Date: Tue, 10 Oct 2023 22:43:53 +0200 Subject: [PATCH 1/4] fixed action --- .github/workflows/publish_pypi.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/publish_pypi.yml b/.github/workflows/publish_pypi.yml index 94eb8d2..06a12b3 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@v1 with: user: __token__ password: ${{ secrets.pypi_api_key }} \ No newline at end of file From c3e2493fd873e63da9cbbb310ef7e0c49a30a487 Mon Sep 17 00:00:00 2001 From: nobbi1991 <48419518+nobbi1991@users.noreply.github.com> Date: Tue, 10 Oct 2023 22:53:08 +0200 Subject: [PATCH 2/4] set version --- .github/workflows/publish_pypi.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/publish_pypi.yml b/.github/workflows/publish_pypi.yml index 06a12b3..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@v1 + uses: pypa/gh-action-pypi-publish@release/v1 with: user: __token__ password: ${{ secrets.pypi_api_key }} \ No newline at end of file From a7e4cc6ba8615094e72fceb8e6ea70243262adb5 Mon Sep 17 00:00:00 2001 From: nobbi1991 <48419518+nobbi1991@users.noreply.github.com> Date: Tue, 10 Oct 2023 22:55:56 +0200 Subject: [PATCH 3/4] set version --- habapp_rules/__version__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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" From 2135d74adad3d21e577002252106ae8a0b9cf14a Mon Sep 17 00:00:00 2001 From: nobbi1991 <48419518+nobbi1991@users.noreply.github.com> Date: Tue, 17 Oct 2023 22:08:17 +0200 Subject: [PATCH 4/4] fixed bug in habapp_rules.actors.shading.ResetAllManualHand --- changelog.md | 6 ++++++ habapp_rules/actors/shading.py | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) 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/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.