Fix HA Discovery Issue with Uninitialized Sensors

This commit is contained in:
Adrian Scillato 2020-11-26 10:08:31 -03:00 committed by GitHub
parent 25dfb84171
commit 2721444af0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1172,7 +1172,7 @@ bool Xdrv12(uint8_t function)
break;
case FUNC_MQTT_INIT:
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) {
// NewHAssDiscovery();
// }