Skip to content

Commit

Permalink
Fix crash in loading attributs Andre0512/hon#134
Browse files Browse the repository at this point in the history
  • Loading branch information
Andre0512 committed Jan 11, 2024
1 parent 7bc9e71 commit 7a5c99c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions pyhon/commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,9 @@ def parameter_value(self) -> Dict[str, Union[str, float]]:

def _load_parameters(self, attributes: Dict[str, Dict[str, Any]]) -> None:
for key, items in attributes.items():
if not isinstance(items, dict):
_LOGGER.info("Loading Attributes - Skipping %s", str(items))
continue
for name, data in items.items():
self._create_parameters(data, name, key)
for rule in self._rules:
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

setup(
name="pyhOn",
version="0.15.14",
version="0.15.15",
author="Andre Basche",
description="Control hOn devices with python",
long_description=long_description,
Expand Down

0 comments on commit 7a5c99c

Please sign in to comment.