Don't ignore falsish data (empty string, 0...)
This commit is contained in:
parent
77e3dfc29c
commit
6569686634
@ -709,7 +709,7 @@ export class Service {
|
||||
for (const attribute of Object.keys(lastState.public_data)) {
|
||||
try {
|
||||
const value = this.decodeValue(lastState.public_data[attribute]);
|
||||
if (value) {
|
||||
if (value !== null && value !== undefined) {
|
||||
processData[attribute] = value;
|
||||
}
|
||||
} catch (e) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user