Merge branch 'dev' of https://github.com/proddy/EMS-ESP into dev

This commit is contained in:
proddy
2020-11-15 17:51:27 +01:00
7 changed files with 20 additions and 8 deletions

View File

@@ -727,7 +727,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