[core] Move entity icon strings to PROGMEM on ESP8266 (#14437)

This commit is contained in:
J. Nick Koston authored and GitHub committed 2026-03-06 06:57:52 -10:00
1 parent e59a2b3ede
commit 07e51886f3
11 files changed
+158 -30

No files matched your search

+2 -1
View File
@@ -568,7 +568,8 @@ static void set_json_id(JsonObject &root, EntityBase *obj, const char *prefix, J
}
#endif
#ifdef USE_ENTITY_ICON
root[ESPHOME_F("icon")] = obj->get_icon_ref().c_str();
char icon_buf[MAX_ICON_LENGTH];
root[ESPHOME_F("icon")] = obj->get_icon_to(icon_buf);
#endif
root[ESPHOME_F("entity_category")] = obj->get_entity_category();
bool is_disabled = obj->is_disabled_by_default();