From 82843bf305c3e198ca34d55f594de584cffdeff0 Mon Sep 17 00:00:00 2001 From: Adrian Batzill Date: Thu, 5 Sep 2024 10:02:06 +0200 Subject: [PATCH] HA discovery: fix device_class enum for 2024.09 compatibility --- src/ism7mqtt/HomeAssistant/HaDiscovery.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/ism7mqtt/HomeAssistant/HaDiscovery.cs b/src/ism7mqtt/HomeAssistant/HaDiscovery.cs index 65c8e46..44b7af8 100644 --- a/src/ism7mqtt/HomeAssistant/HaDiscovery.cs +++ b/src/ism7mqtt/HomeAssistant/HaDiscovery.cs @@ -269,6 +269,7 @@ private string GetHomeAssistantType(ParameterDescriptor descriptor) options.Add((JsonNode)value.Value); } yield return ("options", options); + yield return ("device_class", "enum"); } break;