mirror of
https://github.com/arendst/Tasmota.git
synced 2025-04-24 06:47:17 +00:00
Merge pull request #3908 from emontnemery/fix_hass_forced_light
Fix logic for forced light discovery
This commit is contained in:
commit
0eac385b04
@ -76,7 +76,7 @@ void HAssDiscoverRelay()
|
||||
|
||||
for (int i = 1; i <= MAX_RELAYS; i++) {
|
||||
is_light = ((i == devices_present) && (light_type));
|
||||
is_topic_light = Settings.flag.hass_light;
|
||||
is_topic_light = Settings.flag.hass_light || is_light;
|
||||
|
||||
mqtt_data[0] = '\0'; // Clear retained message
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user