HA integration: fix Light domain generator

This commit is contained in:
Federico Leoni 2020-10-16 10:20:16 -03:00 committed by GitHub
parent 54ebb3d96d
commit 62ead568c9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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 {