Change ACP code_format to None|"Number"|"Any" (#14686)

This commit is contained in:
c727 2018-05-31 14:31:40 +02:00 committed by Martin Hjelmare
parent 08fc73aa20
commit 7094d6d61e
12 changed files with 18 additions and 18 deletions

View file

@ -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."""