Handle Bluetooth connection drops in more places

This commit is contained in:
J. Nick Koston 2023-11-28 07:10:13 -06:00
parent 9b300609aa
commit 3b82f3c279
No known key found for this signature in database
1 changed files with 2 additions and 2 deletions

View File

@ -702,8 +702,8 @@ class APIClient:
timeout,
)
if (
type(response)
is BluetoothDeviceConnectionResponse # pylint: disable=unidiomatic-typecheck
type(response) # pylint: disable=unidiomatic-typecheck
is BluetoothDeviceConnectionResponse
):
self._raise_for_ble_connection_change(address, response, msg_types)
return response