[api] Sync uses_password field_ifdef optimization from aioesphomeapi (#9756)
This commit is contained in:
1 parent
fc286c8bf4
commit
305667b06d
5 files changed
+9
-3
No files matched your search
@@ -647,10 +647,12 @@ void DeviceInfo::dump_to(std::string &out) const {
|
||||
void DeviceInfoResponse::dump_to(std::string &out) const {
|
||||
__attribute__((unused)) char buffer[64];
|
||||
out.append("DeviceInfoResponse {\n");
|
||||
#ifdef USE_API_PASSWORD
|
||||
out.append(" uses_password: ");
|
||||
out.append(YESNO(this->uses_password));
|
||||
out.append("\n");
|
||||
|
||||
#endif
|
||||
out.append(" name: ");
|
||||
out.append("'").append(this->name).append("'");
|
||||
out.append("\n");
|
||||
|
||||
Reference in new issue
Block a user