Check if device has manufName. #1005

This commit is contained in:
Koen Kanters 2019-02-03 17:11:41 +01:00
parent 8a6582739f
commit 51c91e685e

View File

@ -66,7 +66,7 @@ class PollLivoloSwitch {
handleInterval() {
this.zigbee.getAllClients()
.filter((d) => d.manufName.startsWith('LIVOLO')) // LIVOLO
.filter((d) => d.manufName && d.manufName.startsWith('LIVOLO')) // LIVOLO
.filter((d) => d.type === 'EndDevice') // Filter end devices
.filter((d) => d.powerSource && d.powerSource !== 'Battery') // Remove battery powered devices
.forEach((d) => {