From f4060410ad6e0df862d68979b62d5b387c43a2aa Mon Sep 17 00:00:00 2001 From: Jesse Hills <3060199+jesserockz@users.noreply.github.com> Date: Thu, 4 Apr 2024 18:20:25 +1300 Subject: [PATCH] Call handle_stop regardless --- aioesphomeapi/client.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aioesphomeapi/client.py b/aioesphomeapi/client.py index d331573..91f73e1 100644 --- a/aioesphomeapi/client.py +++ b/aioesphomeapi/client.py @@ -1284,7 +1284,7 @@ class APIClient: start_task.add_done_callback(_started) # We hold a reference to the start_task in unsub function # so we don't need to add it to the background tasks. - elif handle_audio is None: + else: self._create_background_task(handle_stop()) remove_callbacks = []