From 6b6793b680b8f1528198cc83d54d3bfd01ce539b Mon Sep 17 00:00:00 2001 From: dolai1 <116979987+dolai1@users.noreply.github.com> Date: Wed, 31 Jan 2024 11:43:28 -0500 Subject: [PATCH] Fix non-unique identifiers reporting to HA Delete identifier "mqtt-io" as it is not unique in situations with multiple instances of MQTT IO reporting to a single instance of HA. Only the unique identifier is needed. Otherwise, the multiple instances of MQTT IO appear as a single device to HA. --- mqtt_io/home_assistant.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mqtt_io/home_assistant.py b/mqtt_io/home_assistant.py index 6e405cf0..e46c1164 100644 --- a/mqtt_io/home_assistant.py +++ b/mqtt_io/home_assistant.py @@ -34,7 +34,7 @@ def get_common_config( device=dict( manufacturer="MQTT IO", model=f"v{VERSION}", - identifiers=["mqtt-io", mqtt_options.client_id], + identifiers=[mqtt_options.client_id], name=disco_conf["name"], ), )