Skip to content

Commit

Permalink
Fix non-unique identifiers reporting to HA (#345)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
dolai1 authored Feb 1, 2024
1 parent 44e94c0 commit 3beb11a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mqtt_io/home_assistant.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"],
),
)
Expand Down

0 comments on commit 3beb11a

Please sign in to comment.