mirror of
https://github.com/arendst/Tasmota.git
synced 2025-07-23 10:46:31 +00:00
Merge pull request #9557 from effelle/development
HA integration: fix Light domain
This commit is contained in:
commit
6b08bcbb4e
@ -219,7 +219,7 @@ void HassDiscoveryRelays(struct HASS &Hass)
|
|||||||
if (SONOFF_IFAN02 == my_module_type || SONOFF_IFAN03 == my_module_type) { iFan = true;}
|
if (SONOFF_IFAN02 == my_module_type || SONOFF_IFAN03 == my_module_type) { iFan = true;}
|
||||||
#endif // ESP8266
|
#endif // ESP8266
|
||||||
|
|
||||||
if (Light.subtype > LST_RGB) {
|
if (Light.subtype > LST_NONE) {
|
||||||
if (!light_controller.isCTRGBLinked()) { // One or two lights present
|
if (!light_controller.isCTRGBLinked()) { // One or two lights present
|
||||||
lightidx = devices_present - 2;
|
lightidx = devices_present - 2;
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user