mirror of
https://github.com/home-assistant/core.git
synced 2025-08-14 01:55:18 +02:00
fix black for stream (#39622)
This commit is contained in:
@@ -50,7 +50,9 @@ def stream_worker(hass, stream, quit_event):
|
|||||||
# To avoid excessive restarts, don't restart faster than once every 40 seconds.
|
# To avoid excessive restarts, don't restart faster than once every 40 seconds.
|
||||||
wait_timeout = max(40 - (time.time() - start_time), 0)
|
wait_timeout = max(40 - (time.time() - start_time), 0)
|
||||||
_LOGGER.debug(
|
_LOGGER.debug(
|
||||||
"Restarting stream worker in %d seconds: %s", wait_timeout, stream.source,
|
"Restarting stream worker in %d seconds: %s",
|
||||||
|
wait_timeout,
|
||||||
|
stream.source,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user