use EMSESP_MAX_JSON_SIZE_HA_CONFIG

This commit is contained in:
proddy
2020-11-15 17:59:58 +01:00
parent d52dc4460f
commit 293d49bd56

View File

@@ -695,7 +695,7 @@ void Mqtt::register_mqtt_ha_binary_sensor(const __FlashStringHelper * name, cons
return; return;
} }
StaticJsonDocument<EMSESP_MAX_JSON_SIZE_SMALL> doc; StaticJsonDocument<EMSESP_MAX_JSON_SIZE_HA_CONFIG> doc;
doc["name"] = name; doc["name"] = name;
doc["uniq_id"] = entity; doc["uniq_id"] = entity;