Don't ignore falsish data (empty string, 0...)

This commit is contained in:
Sosthene 2025-09-03 15:09:53 +02:00
parent 77e3dfc29c
commit 6569686634

View File

@ -709,7 +709,7 @@ export class Service {
for (const attribute of Object.keys(lastState.public_data)) { for (const attribute of Object.keys(lastState.public_data)) {
try { try {
const value = this.decodeValue(lastState.public_data[attribute]); const value = this.decodeValue(lastState.public_data[attribute]);
if (value) { if (value !== null && value !== undefined) {
processData[attribute] = value; processData[attribute] = value;
} }
} catch (e) { } catch (e) {