From 62ead568c9db29917a06cb5cb4e2c09562853b6e Mon Sep 17 00:00:00 2001 From: Federico Leoni Date: Fri, 16 Oct 2020 10:20:16 -0300 Subject: [PATCH] HA integration: fix Light domain generator --- tasmota/xdrv_12_home_assistant.ino | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tasmota/xdrv_12_home_assistant.ino b/tasmota/xdrv_12_home_assistant.ino index 9aa721fe9..d4daffd26 100644 --- a/tasmota/xdrv_12_home_assistant.ino +++ b/tasmota/xdrv_12_home_assistant.ino @@ -219,7 +219,7 @@ void HassDiscoveryRelays(struct HASS &Hass) if (SONOFF_IFAN02 == my_module_type || SONOFF_IFAN03 == my_module_type) { iFan = true;} #endif // ESP8266 - if (Light.subtype > LST_RGB) { + if (Light.subtype > LST_NONE) { if (!light_controller.isCTRGBLinked()) { // One or two lights present lightidx = devices_present - 2; } else {