* (Apollon77) Fix crash cases reported by Sentry (IOBROKER-HASS-2)

This commit is contained in:
Ingo Fischer
2022-03-29 08:59:10 +02:00
parent 4096826099
commit dc47f48004
2 changed files with 5 additions and 1 deletions
+4
View File
@@ -93,6 +93,10 @@ Please check it https://www.smarthomejetzt.de/mit-iobroker-auf-eine-home-assista
--> -->
## Changelog ## Changelog
### __WORK IN PROGRESS__
* (Apollon77) Fix crash cases reported by Sentry
### 1.1.1 (2022-03-25) ### 1.1.1 (2022-03-25)
* (Apollon77) Show password fields masked again in config * (Apollon77) Show password fields masked again in config
+1 -1
View File
@@ -383,7 +383,7 @@ function main() {
} }
if (entity.attributes) { if (entity.attributes) {
for (const attr in entity.attributes) { for (const attr in entity.attributes) {
if (!entity.attributes.hasOwnProperty(attr) || attr === 'friendly_name' || attr === 'unit_of_measurement' || attr === 'icon') { if (!entity.attributes.hasOwnProperty(attr) || attr === 'friendly_name' || attr === 'unit_of_measurement' || attr === 'icon'|| !attr.length) {
continue; continue;
} }
let val = entity.attributes[attr]; let val = entity.attributes[attr];