mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 21:27:38 +00:00
Fix blocking I/O in stream tests (#121142)
This commit is contained in:
parent
7002042119
commit
a4d4fc6827
@ -305,7 +305,5 @@ async def test_record_stream_rotate(hass: HomeAssistant, filename, h264_video) -
|
|||||||
|
|
||||||
# Assert
|
# Assert
|
||||||
assert os.path.exists(filename)
|
assert os.path.exists(filename)
|
||||||
with open(filename, "rb") as rotated_mp4:
|
data = await hass.async_add_executor_job(Path(filename).read_bytes)
|
||||||
assert_mp4_has_transform_matrix(
|
assert_mp4_has_transform_matrix(data, stream.dynamic_stream_settings.orientation)
|
||||||
rotated_mp4.read(), stream.dynamic_stream_settings.orientation
|
|
||||||
)
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user