json size of ha-sensors

This commit is contained in:
MichaelDvP
2020-11-15 17:30:15 +01:00
parent b782993eb4
commit fdaddcdbdd
2 changed files with 2 additions and 2 deletions

View File

@@ -719,7 +719,7 @@ void Mqtt::register_mqtt_ha_binary_sensor(const __FlashStringHelper * name, cons
snprintf_P(topic, sizeof(topic), PSTR("homeassistant/binary_sensor/ems-esp/%s/config"), entity);
// queue MQTT publish
publish(topic, doc.as<JsonObject>());
publish_retain(topic, doc.as<JsonObject>(), true);
}
// HA config for a normal 'sensor' type