Skip to content

Commit bd822e0

Browse files
authored
Update ring-virtual-alarm-hub.groovy (#10)
Fixing a recent error where Ring can report back with a nw.wlan0.type = null, so added to the check to make sure there is a type, not just an existence of wlan0. Been running this for a few weeks with no negative impact, just one less error showing up in HE.
1 parent 3531e86 commit bd822e0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/drivers/ring-virtual-alarm-hub.groovy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -323,7 +323,7 @@ def setValues(deviceInfo) {
323323
if (nw.ppp0) {
324324
sendEvent(name: nw.ppp0.type.capitalize(), value: "${nw.ppp0.name} RSSI ${nw.ppp0.rssi}")
325325
}
326-
if (nw.wlan0) {
326+
if (nw.wlan0.type != null) {
327327
sendEvent(name: nw.wlan0.type.capitalize(), value: "${nw.wlan0.ssid} RSSI ${nw.wlan0.rssi}")
328328
}
329329
}

0 commit comments

Comments
 (0)