Replace Alarm Control Panel FORMAT_ constants with CodeFormat enum (#69861)
This commit is contained in:
parent
81f3c82aef
commit
1e4aacaeb1
22 changed files with 65 additions and 47 deletions
|
@ -112,7 +112,7 @@ class NX584Alarm(alarm.AlarmControlPanelEntity):
|
|||
@property
|
||||
def code_format(self):
|
||||
"""Return one or more digits/characters."""
|
||||
return alarm.FORMAT_NUMBER
|
||||
return alarm.CodeFormat.NUMBER
|
||||
|
||||
@property
|
||||
def state(self):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue