Skip to content

Commit 7a5c99c

Browse files
committed
Fix crash in loading attributs Andre0512/hon#134
1 parent 7bc9e71 commit 7a5c99c

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

pyhon/commands.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,9 @@ def parameter_value(self) -> Dict[str, Union[str, float]]:
9191

9292
def _load_parameters(self, attributes: Dict[str, Dict[str, Any]]) -> None:
9393
for key, items in attributes.items():
94+
if not isinstance(items, dict):
95+
_LOGGER.info("Loading Attributes - Skipping %s", str(items))
96+
continue
9497
for name, data in items.items():
9598
self._create_parameters(data, name, key)
9699
for rule in self._rules:

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
setup(
99
name="pyhOn",
10-
version="0.15.14",
10+
version="0.15.15",
1111
author="Andre Basche",
1212
description="Control hOn devices with python",
1313
long_description=long_description,

0 commit comments

Comments
 (0)