Closed tt-tom17 closed 6 months ago
Meldung : nspanel-lovelace-ui.0 (30638) [StatesDB.///AdapterUpdate.29?0.true] Read for dp: admin.0.info.updatesJson is invalid! read: if (!val || !val.startsWith('{') || !val.endsWith('}')) return ''; const v = JSON.parse(val) return ( v.device-watcher ? ('v' + v.device-watcher.installedVersion.trim() + "\r\nv" + (v.device-watcher.availableVersion.trim() + ' ' )) : 'done' ); Error: ReferenceError: watcher is not defined
try catch einfügen in read function
fix in #65
Meldung : nspanel-lovelace-ui.0 (30638) [StatesDB.///AdapterUpdate.29?0.true] Read for dp: admin.0.info.updatesJson is invalid! read: if (!val || !val.startsWith('{') || !val.endsWith('}')) return ''; const v = JSON.parse(val) return ( v.device-watcher ? ('v' + v.device-watcher.installedVersion.trim() + "\r\nv" + (v.device-watcher.availableVersion.trim() + ' ' )) : 'done' ); Error: ReferenceError: watcher is not defined