From e8a57546c68430ed04517916cd683c4b28d60b87 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Jastrz=C4=99bski?= Date: Wed, 25 Sep 2024 08:33:21 +0200 Subject: [PATCH] Allow Wago updater to handle auras inside groups --- CB/Wago.py | 4 ++-- CB/__init__.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/CB/Wago.py b/CB/Wago.py index ee4b934..658d2fe 100644 --- a/CB/Wago.py +++ b/CB/Wago.py @@ -57,8 +57,8 @@ def parse_storage(self): for wa in wadata['displays']: if 'url' in wadata['displays'][wa]: search = self.urlParser.search(wadata['displays'][wa]['url']) - if (search is not None and search.group(1) and search.group(2) and - 'parent' not in wadata['displays'][wa] and 'ignoreWagoUpdate' not in wadata['displays'][wa]): + if (search is not None and search.group(1) and search.group(2) and search.group(1) not in self.list + and 'ignoreWagoUpdate' not in wadata['displays'][wa]): if 'skipWagoUpdate' in wadata['displays'][wa]: self.ignored[search.group(1)] = int(wadata['displays'][wa]['skipWagoUpdate']) self.list[search.group(1)] = int(search.group(2)) diff --git a/CB/__init__.py b/CB/__init__.py index d525760..bdf7d2e 100644 --- a/CB/__init__.py +++ b/CB/__init__.py @@ -1,6 +1,6 @@ import httpx -__version__ = '4.7.2' +__version__ = '4.7.3' __license__ = 'GPLv3' __copyright__ = '2019-2024, Paweł Jastrzębski ' __docformat__ = 'restructuredtext en'