diff --git a/custom_components/loxone/const.py b/custom_components/loxone/const.py index 5ded7f54..465cd60a 100644 --- a/custom_components/loxone/const.py +++ b/custom_components/loxone/const.py @@ -101,17 +101,6 @@ DEFAULT_AUDIO_ZONE_V2_PLAY_STATE = -1 -cfmt = """\ -( # start of capture group 1 -% # literal "%" -(?: # first option -(?:[-+0 #]{0,5}) # optional flags -(?:\d+|\*)? # width -(?:\.(?:\d+|\*))? # precision -(?:h|l|ll|w|I|I32|I64)? # size -[cCdiouxXeEfgGaAnpsSZ] # type -) | # OR -%%) -""" +cfmt = r"""(%(?:(?:[-+0 #]{0,5})(?:\d+|\*)?(?:\.(?:\d+|\*))?(?:h|l|ll|w|I|I32|I64)?[cCdiouxXeEfgGaAnpsSZ])|%%)""" # End of loxone constants