Deprecate SUPPORT_* constants in siren (#69648)
This commit is contained in:
parent
2ad096733a
commit
fa13a243d4
1 changed files with 12 additions and 0 deletions
|
@ -129,6 +129,18 @@ _OBSOLETE_IMPORT: dict[str, list[ObsoleteImportMatch]] = {
|
|||
constant=re.compile(r"^STATE_CLASS_(\w*)$"),
|
||||
),
|
||||
],
|
||||
"homeassistant.components.siren": [
|
||||
ObsoleteImportMatch(
|
||||
reason="replaced by SirenEntityFeature enum",
|
||||
constant=re.compile(r"^SUPPORT_(\w*)$"),
|
||||
),
|
||||
],
|
||||
"homeassistant.components.siren.const": [
|
||||
ObsoleteImportMatch(
|
||||
reason="replaced by SirenEntityFeature enum",
|
||||
constant=re.compile(r"^SUPPORT_(\w*)$"),
|
||||
),
|
||||
],
|
||||
"homeassistant.components.switch": [
|
||||
ObsoleteImportMatch(
|
||||
reason="replaced by SwitchDeviceClass enum",
|
||||
|
|
Loading…
Add table
Reference in a new issue