We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3264dec commit c970b48Copy full SHA for c970b48
1 file changed
src/ism7mqtt/HomeAssistant/HaDiscovery.cs
@@ -111,7 +111,7 @@ private IEnumerable<JsonMessage> GetDiscoveryInfo(Ism7Config.RunningDevice devic
111
}
112
113
message.Add("name", _localizer[descriptor.Name]);
114
- message.Add("default_entity_id", uniqueId);
+ message.Add("default_entity_id", $"{(type ?? "unknown")}.{uniqueId}");
115
116
foreach (var (key, value) in GetDiscoveryProperties(descriptor))
117
{
0 commit comments