Closed elbowz closed 2 years ago
Avoid loading config each time want check if device is configured (calling isConfigured()).
isConfigured()
Fix: Remove the spam message "/homie/config.json doesn't exist" in config mode, when put isConfigured() in loop().
loop()
notes: I have made some test and it seems work, but in this way you can call Homie.isConfigured() only after Homie.setup().
Homie.isConfigured()
Homie.setup()
...or maybe can be added something:
bool HomieClass::isConfigured() { if(!_setupCalled) return Interface::get().getConfig().load(); else return Interface::get().getConfig().isValid(); }
Are there some news, feedback or timing about this PR and the other one (#720)
Thx!
Avoid loading config each time want check if device is configured (calling
isConfigured()
).Fix: Remove the spam message "/homie/config.json doesn't exist" in config mode, when put
isConfigured()
inloop()
.notes: I have made some test and it seems work, but in this way you can call
Homie.isConfigured()
only afterHomie.setup()
....or maybe can be added something: