Replace Alarm Control Panel FORMAT_ constants with CodeFormat enum (#69861)

This commit is contained in:
Franck Nijhof 2022-04-18 19:37:32 +02:00 committed by GitHub
parent 81f3c82aef
commit 1e4aacaeb1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
22 changed files with 65 additions and 47 deletions

View file

@ -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):