瀏覽代碼

Merge pull request #53 from krkeegan/Fix_Issue_51

Don't Update Expander Zone Based on Regular Messages
main
Sean Mathews 3 年之前
committed by GitHub
父節點
當前提交
cafd55c31d
沒有發現已知的金鑰在資料庫的簽署中 GPG Key ID: 4AEE18F83AFDEB23
共有 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):
"""


Loading…
取消
儲存