diff options
author | Andre Basche <andre.basche@gmail.com> | 2024-01-11 01:18:10 +0100 |
---|---|---|
committer | Andre Basche <andre.basche@gmail.com> | 2024-01-11 01:18:49 +0100 |
commit | 7a5c99c167974d5c4ac730e435148eea84c19c4a (patch) | |
tree | 4c7ee9428e82378447994cd030d701c348cec060 | |
parent | 7bc9e718a072177db43b07570b7152f2c0109d4e (diff) |
Fix crash in loading attributs Andre0512/hon#134v0.15.15
-rw-r--r-- | pyhon/commands.py | 3 | ||||
-rw-r--r-- | setup.py | 2 |
2 files changed, 4 insertions, 1 deletions
diff --git a/pyhon/commands.py b/pyhon/commands.py index d88cbd1..6584d1f 100644 --- a/pyhon/commands.py +++ b/pyhon/commands.py | |||
@@ -91,6 +91,9 @@ class HonCommand: | |||
91 | 91 | ||
92 | def _load_parameters(self, attributes: Dict[str, Dict[str, Any]]) -> None: | 92 | def _load_parameters(self, attributes: Dict[str, Dict[str, Any]]) -> None: |
93 | for key, items in attributes.items(): | 93 | for key, items in attributes.items(): |
94 | if not isinstance(items, dict): | ||
95 | _LOGGER.info("Loading Attributes - Skipping %s", str(items)) | ||
96 | continue | ||
94 | for name, data in items.items(): | 97 | for name, data in items.items(): |
95 | self._create_parameters(data, name, key) | 98 | self._create_parameters(data, name, key) |
96 | for rule in self._rules: | 99 | for rule in self._rules: |
@@ -7,7 +7,7 @@ with open("README.md", "r", encoding="utf-8") as f: | |||
7 | 7 | ||
8 | setup( | 8 | setup( |
9 | name="pyhOn", | 9 | name="pyhOn", |
10 | version="0.15.14", | 10 | version="0.15.15", |
11 | author="Andre Basche", | 11 | author="Andre Basche", |
12 | description="Control hOn devices with python", | 12 | description="Control hOn devices with python", |
13 | long_description=long_description, | 13 | long_description=long_description, |