mirror of
https://github.com/home-assistant/core.git
synced 2025-04-24 09:17:53 +00:00
Deprecate SUPPORT_* constants in siren (#69648)
This commit is contained in:
parent
2ad096733a
commit
fa13a243d4
@ -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…
x
Reference in New Issue
Block a user