Compare commits

..

1 Commits

Author SHA1 Message Date
Andre Basche 7a5c99c167 Fix crash in loading attributs Andre0512/hon#134 2024-01-11 01:18:49 +01:00
+1 -1
View File
@@ -89,7 +89,7 @@ class HonCommand:
def parameter_value(self) -> Dict[str, Union[str, float]]:
return {n: p.value for n, p in self._parameters.items()}
def _load_parameters(self, attributes: Dict[str, Dict[str, Any] | Any]) -> None:
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))