Enable ruff RUF005 and fix occurrences (#113589)
This commit is contained in:
parent
2a5c85a020
commit
ccd2e989c3
58 changed files with 150 additions and 128 deletions
|
@ -109,7 +109,7 @@ async def test_record_path_not_allowed(hass: HomeAssistant, h264_video) -> None:
|
|||
|
||||
def add_parts_to_segment(segment, source):
|
||||
"""Add relevant part data to segment for testing recorder."""
|
||||
moof_locs = list(find_box(source.getbuffer(), b"moof")) + [len(source.getbuffer())]
|
||||
moof_locs = [*find_box(source.getbuffer(), b"moof"), len(source.getbuffer())]
|
||||
segment.init = source.getbuffer()[: moof_locs[0]].tobytes()
|
||||
segment.parts = [
|
||||
Part(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue