[mqtt] fix missing initializer in MQTTClientComponent::disable_discovery (#7271)

This commit is contained in:
Olivier ARCHER 2024-08-14 04:19:46 +02:00 committed by GitHub
parent 4cb174585c
commit 8756b41b63
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -632,6 +632,7 @@ void MQTTClientComponent::disable_discovery() {
this->discovery_info_ = MQTTDiscoveryInfo{ this->discovery_info_ = MQTTDiscoveryInfo{
.prefix = "", .prefix = "",
.retain = false, .retain = false,
.discover_ip = false,
.clean = false, .clean = false,
.unique_id_generator = MQTT_LEGACY_UNIQUE_ID_GENERATOR, .unique_id_generator = MQTT_LEGACY_UNIQUE_ID_GENERATOR,
.object_id_generator = MQTT_NONE_OBJECT_ID_GENERATOR, .object_id_generator = MQTT_NONE_OBJECT_ID_GENERATOR,