Merge pull request #9985 from ascillato/patch-1

Fix HA Discovery Issue with Uninitialized Sensors
This commit is contained in:
Theo Arends 2020-11-26 14:50:13 +01:00 committed by GitHub
commit 3b0cfab8ae
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -1172,7 +1172,7 @@ bool Xdrv12(uint8_t function)
break; break;
case FUNC_MQTT_INIT: case FUNC_MQTT_INIT:
hass_mode = 0; // Discovery only if Settings.flag.hass_discovery is set hass_mode = 0; // Discovery only if Settings.flag.hass_discovery is set
hass_init_step = 2; // Delayed discovery hass_init_step = 10; // Delayed discovery
// if (!Settings.flag.hass_discovery) { // if (!Settings.flag.hass_discovery) {
// NewHAssDiscovery(); // NewHAssDiscovery();
// } // }