diff --git a/src/habluetooth/manager.py b/src/habluetooth/manager.py index ef058e6..04bdc9d 100644 --- a/src/habluetooth/manager.py +++ b/src/habluetooth/manager.py @@ -325,7 +325,7 @@ def _async_check_unavailable(self) -> None: if not (callbacks := unavailable_callbacks.get(address)): continue - for callback in callbacks: + for callback in callbacks.copy(): try: callback(service_info) except Exception: # pylint: disable=broad-except