소스 검색

Don't Update Expander Zone Based on Regular Messages

Expanders messages handle this directly.

Fixes #51
main
KRKeegan 3 년 전
부모
커밋
69b0377fb6
1개의 변경된 파일4개의 추가작업 그리고 4개의 파일을 삭제
  1. +4
    -4
      alarmdecoder/zonetracking.py

+ 4
- 4
alarmdecoder/zonetracking.py 파일 보기

@@ -151,9 +151,7 @@ class Zonetracker(object):
status = Zone.CHECK

# NOTE: Expander zone faults are handled differently than
# regular messages. We don't include them in
# self._zones_faulted because they are not reported
# by the panel in it's rolling list of faults.
# regular messages.
try:
self._update_zone(zone, status=status)

@@ -296,7 +294,9 @@ class Zonetracker(object):

# Actually remove the zones and trigger the restores.
for z in cleared_zones:
self._update_zone(z, Zone.CLEAR)
# Don't clear expander zones, expander messages will fix this
if self._zones[z].expander is False:
self._update_zone(z, Zone.CLEAR)

def _clear_expired_zones(self):
"""


불러오는 중...
취소
저장