[core] Move entity icon strings to PROGMEM on ESP8266 (#14437)
This commit is contained in:
1 parent
e59a2b3ede
commit
07e51886f3
11 files changed
+158
-30
No files matched your search
@@ -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();
|
||||
|
||||
Reference in new issue
Block a user