Replace Camera STREAM_ constants with StreamType enum (#69871)
This commit is contained in:
parent
75fce1f036
commit
c93c7e8eff
8 changed files with 56 additions and 36 deletions
|
@ -42,6 +42,16 @@ _OBSOLETE_IMPORT: dict[str, list[ObsoleteImportMatch]] = {
|
|||
reason="replaced by CameraEntityFeature enum",
|
||||
constant=re.compile(r"^SUPPORT_(\w*)$"),
|
||||
),
|
||||
ObsoleteImportMatch(
|
||||
reason="replaced by StreamType enum",
|
||||
constant=re.compile(r"^STREAM_TYPE_(\w*)$"),
|
||||
),
|
||||
],
|
||||
"homeassistant.components.camera.const": [
|
||||
ObsoleteImportMatch(
|
||||
reason="replaced by StreamType enum",
|
||||
constant=re.compile(r"^STREAM_TYPE_(\w*)$"),
|
||||
),
|
||||
],
|
||||
"homeassistant.components.climate": [
|
||||
ObsoleteImportMatch(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue