Browse Source

Not used, never used, private method. Switched to new _update_armed_ready_status.

pyserial_fix
f34rdotcom 6 years ago
parent
commit
940ba4b659
1 changed files with 0 additions and 26 deletions
  1. +0
    -26
      alarmdecoder/decoder.py

+ 0
- 26
alarmdecoder/decoder.py View File

@@ -647,32 +647,6 @@ class AlarmDecoder(object):

return self._power_status

def _update_ready_status(self, message=None, status=None):
"""
Uses the provided message to update the ready state.

:param message: message to use to update
:type message: :py:class:`~alarmdecoder.messages.Message`
:param status: ready status, overrides message bits.
:type status: bool

:returns: bool indicating the new status
"""
ready_status = status
if isinstance(message, Message):
ready_status = message.ready

if ready_status is None:
return

if ready_status != self._ready_status:
self._ready_status, old_status = ready_status, self._ready_status

if old_status is not None:
self.on_ready_changed(status=self._ready_status)

return self._ready_status

def _update_alarm_status(self, message=None, status=None, zone=None, user=None):
"""
Uses the provided message to update the alarm state.


Loading…
Cancel
Save