Skip to content

Commit

Permalink
Merge pull request #19 from chrisns/patch-2
Browse files Browse the repository at this point in the history
add support for MOTION_DUAL and MOTION_V_ANTIMASK
  • Loading branch information
And3rsL authored Oct 14, 2021
2 parents b485a74 + 8a81f13 commit 93968cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion custom_components/visonicalarm/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ def setup_platform(hass, config, add_devices, discovery_info=None):
for device in hub.alarm.devices:
if device is not None:
if device.subtype is not None:
if 'CONTACT' in device.subtype or device.subtype == 'MOTION_CAMERA' or device.subtype == 'MOTION' or device.subtype == 'CURTAIN':
if 'CONTACT' in device.subtype or device.subtype == 'MOTION_CAMERA' or device.subtype == 'MOTION' or device.subtype == 'MOTION_DUAL' or device.subtype == 'MOTION_V_ANTIMASK' or device.subtype == 'CURTAIN':
_LOGGER.debug("New device found [Type:" + str(device.subtype) + "] [ID:" + str(device.id) + "]")
add_devices([VisonicAlarmContact(hub.alarm, device.id)], True)

Expand Down

0 comments on commit 93968cf

Please sign in to comment.