mirror of
https://github.com/esphome/aioesphomeapi.git
synced 2024-06-26 10:35:00 +02:00
Fix unbound variable in bluetooth logging when connection fails (#672)
This commit is contained in:
parent
250f786c38
commit
96781616b8
|
@ -734,7 +734,7 @@ class APIClient:
|
||||||
except (KeyError, ValueError):
|
except (KeyError, ValueError):
|
||||||
_LOGGER.warning(
|
_LOGGER.warning(
|
||||||
"%s: Bluetooth device connection canceled but already unsubscribed",
|
"%s: Bluetooth device connection canceled but already unsubscribed",
|
||||||
addr,
|
to_human_readable_address(address),
|
||||||
)
|
)
|
||||||
if not timeout_expired:
|
if not timeout_expired:
|
||||||
timeout_handle.cancel()
|
timeout_handle.cancel()
|
||||||
|
|
Loading…
Reference in New Issue
Block a user