mirror of
https://github.com/HASwitchPlate/openHASP.git
synced 2025-07-27 21:26:43 +00:00
Add warning objid property is obsolete
This commit is contained in:
parent
e7ce3e0664
commit
f9a78afbaf
@ -818,6 +818,7 @@ void hasp_new_object(const JsonObject& config, uint8_t& saved_page_id)
|
|||||||
config.remove(FPSTR(FP_OBJ));
|
config.remove(FPSTR(FP_OBJ));
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
LOG_WARNING(TAG_HASP, F("objid property is obsolete, use obj instead"));
|
||||||
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));
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user