diff --git a/paradox/interfaces/mqtt/basic.py b/paradox/interfaces/mqtt/basic.py index 444be8b..689777e 100644 --- a/paradox/interfaces/mqtt/basic.py +++ b/paradox/interfaces/mqtt/basic.py @@ -461,7 +461,8 @@ def _on_ready(self): if i not in labels: continue - for attribute in definitions[i]: # attribute + definition = {**(definitions[i]), "id": i} + for attribute in definition: # attribute if element_type == "user" and attribute == "code": continue self._publish( @@ -469,7 +470,7 @@ def _on_ready(self): element_type, labels[i]["key"], attribute, - definitions[i][attribute], + definition[attribute], ) if (