mirror of
https://github.com/HASwitchPlate/openHASP.git
synced 2025-07-28 05:36:37 +00:00
Remove obsolete objid property
This commit is contained in:
parent
b74066253c
commit
6f4bde6556
@ -13,6 +13,7 @@
|
|||||||
- Set default `line_width` of new `line` objects to 1
|
- Set default `line_width` of new `line` objects to 1
|
||||||
- Allow line and block comments in pages.jsonl
|
- Allow line and block comments in pages.jsonl
|
||||||
- Removed deprecated `txt` property, use `text` instead
|
- Removed deprecated `txt` property, use `text` instead
|
||||||
|
- Removed deprecated `objid` property, use `obj` instead
|
||||||
- HASP theme: Toggle objects now use the secondary color when they are in the toggled state.
|
- HASP theme: Toggle objects now use the secondary color when they are in the toggled state.
|
||||||
|
|
||||||
### Fonts
|
### Fonts
|
||||||
|
@ -270,19 +270,19 @@ void hasp_new_object(const JsonObject& config, uint8_t& saved_page_id)
|
|||||||
/* Create the object first */
|
/* Create the object first */
|
||||||
|
|
||||||
/* Validate type */
|
/* Validate type */
|
||||||
if(config[FPSTR(FP_OBJID)].isNull()) { // TODO: obsolete objid
|
// if(config[FPSTR(FP_OBJID)].isNull()) { // TODO: obsolete objid
|
||||||
if(config[FPSTR(FP_OBJ)].isNull()) {
|
if(config[FPSTR(FP_OBJ)].isNull()) {
|
||||||
return; // comments
|
return; // comments
|
||||||
} else {
|
} else {
|
||||||
sdbm = Parser::get_sdbm(config[FPSTR(FP_OBJ)].as<const char*>());
|
sdbm = Parser::get_sdbm(config[FPSTR(FP_OBJ)].as<const char*>());
|
||||||
config.remove(FPSTR(FP_OBJ));
|
config.remove(FPSTR(FP_OBJ));
|
||||||
}
|
}
|
||||||
} else {
|
// } else {
|
||||||
LOG_WARNING(TAG_HASP, F(D_ATTRIBUTE_OBSOLETE D_ATTRIBUTE_INSTEAD), "objid",
|
// LOG_WARNING(TAG_HASP, F(D_ATTRIBUTE_OBSOLETE D_ATTRIBUTE_INSTEAD), "objid",
|
||||||
"obj"); // TODO: obsolete objid
|
// "obj"); // TODO: obsolete objid
|
||||||
sdbm = config[FPSTR(FP_OBJID)].as<uint8_t>();
|
// sdbm = config[FPSTR(FP_OBJID)].as<uint8_t>();
|
||||||
config.remove(FPSTR(FP_OBJID));
|
// config.remove(FPSTR(FP_OBJID));
|
||||||
}
|
// }
|
||||||
|
|
||||||
switch(sdbm) {
|
switch(sdbm) {
|
||||||
/* ----- Custom Objects ------ */
|
/* ----- Custom Objects ------ */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user