Change ACP code_format to None|"Number"|"Any" (#14686)
This commit is contained in:
parent
08fc73aa20
commit
7094d6d61e
12 changed files with 18 additions and 18 deletions
|
@ -206,8 +206,8 @@ class ManualAlarm(alarm.AlarmControlPanel):
|
|||
if self._code is None:
|
||||
return None
|
||||
elif isinstance(self._code, str) and re.search('^\\d+$', self._code):
|
||||
return '^\\d+$'
|
||||
return '.+'
|
||||
return 'Number'
|
||||
return 'Any'
|
||||
|
||||
def alarm_disarm(self, code=None):
|
||||
"""Send disarm command."""
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue