mirror of
https://github.com/home-assistant/core.git
synced 2025-12-24 04:50:05 +00:00
Replace Camera STREAM_ constants with StreamType enum (#69871)
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user