Remove unnecessary instances of dict.keys() (#42518)
This commit is contained in:
1 parent
6e43d489ca
commit
a967f689c7
21 files changed
+25
-25
No files matched your search
@@ -222,7 +222,7 @@ def _stream_worker_internal(hass, stream, quit_event):
|
||||
def finalize_stream():
|
||||
if not stream.keepalive:
|
||||
# End of stream, clear listeners and stop thread
|
||||
for fmt in stream.outputs.keys():
|
||||
for fmt in stream.outputs:
|
||||
hass.loop.call_soon_threadsafe(stream.outputs[fmt].put, None)
|
||||
|
||||
if not peek_first_pts():
|
||||
|
||||
Reference in new issue
Block a user