Skip to content

Commit 5f2e29b

Browse files
committed
Fix 4
Add support for attrs.fields python/mypy#15021
1 parent 9dabee5 commit 5f2e29b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

homeassistant/components/stream/worker.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -540,8 +540,8 @@ def stream_worker(
540540
for field in attr.fields(StreamSettings):
541541
setattr(
542542
stream_settings,
543-
field.name,
544-
getattr(STREAM_SETTINGS_NON_LL_HLS, field.name),
543+
field.name, # type: ignore[attr-defined]
544+
getattr(STREAM_SETTINGS_NON_LL_HLS, field.name), # type: ignore[attr-defined]
545545
)
546546
stream_state.diagnostics.set_value("container_format", container.format.name)
547547
stream_state.diagnostics.set_value("video_codec", video_stream.name)

0 commit comments

Comments
 (0)