1
0
mirror of https://github.com/home-assistant/core.git synced 2025-12-24 12:59:34 +00:00

Rename stream_type to frontend_stream_type (#57923)

Camera devices may support multiple stream sources so we want to clarify that
this is meant to decide which stream source is used in the frontend only.

Will set stream_type temporarily to allow rollout without breaking nightly,
and this will be removed after frontend is updated.
This commit is contained in:
Allen Porter
2021-10-17 20:16:29 -07:00
committed by GitHub
parent a1176cc79a
commit dafea00f41
3 changed files with 12 additions and 8 deletions

View File

@@ -53,7 +53,7 @@ async def mock_camera_web_rtc_fixture(hass):
await hass.async_block_till_done()
with patch(
"homeassistant.components.camera.Camera.stream_type",
"homeassistant.components.camera.Camera.frontend_stream_type",
new_callable=PropertyMock(return_value=STREAM_TYPE_WEB_RTC),
), patch(
"homeassistant.components.camera.Camera.async_handle_web_rtc_offer",