Browse Source

Fixed away status for DSC panel messages.

pyserial_fix
Scott Petersen 7 years ago
parent
commit
ec4a44c624
1 changed files with 7 additions and 1 deletions
  1. +7
    -1
      alarmdecoder/messages/lrr/system.py

+ 7
- 1
alarmdecoder/messages/lrr/system.py View File

@@ -78,7 +78,13 @@ class LRRSystem(object):
# NOTE: status on OPENCLOSE messages is backwards.
status_stay = (message.event_status == LRR_EVENT_STATUS.RESTORE \
and message.event_code in LRR_STAY_EVENTS)
self._alarmdecoder._update_armed_status(status=not status, status_stay=status_stay)

if status_stay:
status = False
else:
status = not status

self._alarmdecoder._update_armed_status(status=status, status_stay=status_stay)
handled = True




Loading…
Cancel
Save