mirror of
https://github.com/tsightler/ring-mqtt.git
synced 2026-04-23 00:17:07 +08:00
Support no security panel
This commit is contained in:
+1
-1
@@ -340,7 +340,7 @@ export default new class RingMqtt {
|
||||
case RingDeviceType.FloodFreezeSensor:
|
||||
return new FloodFreezeSensor(deviceInfo)
|
||||
case RingDeviceType.SecurityPanel:
|
||||
if (deviceInfo.supportedAlarmTypes?.includes('burglar-alarm')) {
|
||||
if (device.data.supportedAlarmTypes?.includes('burglar-alarm')) {
|
||||
deviceInfo.bypassCapableDevices = allDevices.filter(device =>
|
||||
device.deviceType === RingDeviceType.ContactSensor ||
|
||||
device.deviceType === RingDeviceType.RetrofitZone ||
|
||||
|
||||
Reference in New Issue
Block a user