Remove unnecessary instances of dict.keys() (#42518)

This commit is contained in:
springstan authored and GitHub committed 2020-10-28 20:43:48 +01:00
1 parent 6e43d489ca
commit a967f689c7
21 files changed
+25 -25

No files matched your search

+1 -1
View File
@@ -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():