diff --git a/packages/helpermodules/subdata.py b/packages/helpermodules/subdata.py index 1fd07478b8..4c59046940 100644 --- a/packages/helpermodules/subdata.py +++ b/packages/helpermodules/subdata.py @@ -869,7 +869,7 @@ def get_device_id_by_component_id(id: int) -> Optional[int]: elif re.search("/counter/[0-9]+/config/", msg.topic) is not None: self.set_json_payload_class(var["counter"+index].data.config, msg) elif re.search("/counter/", msg.topic) is not None: - if re.search("/config$", msg.topic) is not None: + if re.search("/config/", msg.topic) is not None: self.set_json_payload_class(self.counter_all_data.data.config, msg) elif re.search("/counter/get", msg.topic) is not None: self.set_json_payload_class(self.counter_all_data.data.get, msg)