Skip to content

Commit

Permalink
Fix 4
Browse files Browse the repository at this point in the history
Add support for attrs.fields
python/mypy#15021
  • Loading branch information
cdce8p committed May 29, 2023
1 parent 9dabee5 commit 5f2e29b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions homeassistant/components/stream/worker.py
Original file line number Diff line number Diff line change
Expand Up @@ -540,8 +540,8 @@ def stream_worker(
for field in attr.fields(StreamSettings):
setattr(
stream_settings,
field.name,
getattr(STREAM_SETTINGS_NON_LL_HLS, field.name),
field.name, # type: ignore[attr-defined]
getattr(STREAM_SETTINGS_NON_LL_HLS, field.name), # type: ignore[attr-defined]
)
stream_state.diagnostics.set_value("container_format", container.format.name)
stream_state.diagnostics.set_value("video_codec", video_stream.name)
Expand Down

0 comments on commit 5f2e29b

Please sign in to comment.