Fix logic for forced light discovery

This commit is contained in:
Erik 2018-09-26 20:35:39 +02:00
parent 172219de42
commit 9acbcc805f
1 changed files with 1 additions and 1 deletions

View File

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