mirror of https://github.com/arendst/Tasmota.git
Merge pull request #9985 from ascillato/patch-1
Fix HA Discovery Issue with Uninitialized Sensors
This commit is contained in:
commit
3b0cfab8ae
|
@ -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();
|
||||||
// }
|
// }
|
||||||
|
|
Loading…
Reference in New Issue