Fix unbound variable in bluetooth logging when connection fails (#672)

This commit is contained in:
J. Nick Koston 2023-11-23 17:38:35 +01:00 committed by GitHub
parent 250f786c38
commit 96781616b8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -734,7 +734,7 @@ class APIClient:
except (KeyError, ValueError):
_LOGGER.warning(
"%s: Bluetooth device connection canceled but already unsubscribed",
addr,
to_human_readable_address(address),
)
if not timeout_expired:
timeout_handle.cancel()