From 96781616b8f86a2faeb768d8f730a23aeecd237a Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Thu, 23 Nov 2023 17:38:35 +0100 Subject: [PATCH] Fix unbound variable in bluetooth logging when connection fails (#672) --- aioesphomeapi/client.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aioesphomeapi/client.py b/aioesphomeapi/client.py index f81f4a3..94909e0 100644 --- a/aioesphomeapi/client.py +++ b/aioesphomeapi/client.py @@ -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()