Commit Graph

146 Commits

Author SHA1 Message Date
J. Nick Koston
176c7bc4b4
Raise BluetoothConnectionDroppedError if connection drops while getting GATT services (#768) 2023-11-28 08:03:08 -06:00
J. Nick Koston
e182f68b42
Raise BluetoothConnectionDroppedError if connection drops during GATT read/write/notify (#767) 2023-11-28 07:42:21 -06:00
J. Nick Koston
3e920df478
Handle Bluetooth connection drops in more places (#766) 2023-11-28 07:23:21 -06:00
J. Nick Koston
1b51530642
Reduce duplicate code between connection and frame helper (#763) 2023-11-27 23:51:38 -06:00
J. Nick Koston
ab5834ca0d
Fix not backing off when connection requires encryption (#762) 2023-11-27 18:39:22 -06:00
J. Nick Koston
31c6e4abc6
Add test for legacy UserService type_ conversion (#761) 2023-11-27 08:46:36 -06:00
J. Nick Koston
f6eff1a205
Add coverage for GATT services from dict (#760) 2023-11-27 08:43:51 -06:00
J. Nick Koston
60e193e4df
Add test for legacy bluetooth data (#759) 2023-11-27 08:24:23 -06:00
J. Nick Koston
86726e9079
Add test to ensure log runner reconnects on subscribe failure (#757) 2023-11-26 18:25:29 -06:00
J. Nick Koston
e93ee7f313
Add coverage for legacy empty BLE advertisements (#756) 2023-11-26 18:00:15 -06:00
J. Nick Koston
3a4ea30adb
Fix missing asserts in legacy bluetooth and light compat tests (#755) 2023-11-26 17:59:25 -06:00
J. Nick Koston
b3972ea070
Improve coverage for legacy ble advertisements (#754) 2023-11-26 17:57:02 -06:00
J. Nick Koston
91b0f1abba
Add coverage for legacy color mode compat (#752) 2023-11-26 17:42:11 -06:00
J. Nick Koston
c53aeff924
Add coverage to ensure log runner reconnects on disconnect (#751) 2023-11-26 17:34:23 -06:00
J. Nick Koston
c98eaa1250
Add coverage to verify subscribe_voice_assistant cancels tasks on unsub (#750) 2023-11-26 17:32:53 -06:00
J. Nick Koston
ca7d403a78
Add coverage for trying to use the client while still handshaking (#749) 2023-11-26 17:23:17 -06:00
J. Nick Koston
a8e2e6828b
Add coverage to ensure pairing ignores responses from the wrong device (#748) 2023-11-26 17:17:22 -06:00
J. Nick Koston
98c6e6a2ae
Add coverage for client api_version being None after disconnected (#747) 2023-11-26 17:14:41 -06:00
J. Nick Koston
3ff5f876d5
Add coverage for BLE connection drop during pairing (#746) 2023-11-26 17:11:42 -06:00
J. Nick Koston
a148479679
Add coverage for unsubscribing from voice assistants (#745) 2023-11-26 17:07:48 -06:00
J. Nick Koston
1a4bdfbed8
Add coverage for subscribe_voice_assistant (#744) 2023-11-26 17:03:23 -06:00
J. Nick Koston
1a4c8bff17
Add test coverage for send_voice_assistant_event (#743) 2023-11-26 16:45:38 -06:00
J. Nick Koston
0fab7a6b99
Expand coverage for bluetooth GATT services (#742) 2023-11-26 16:34:28 -06:00
J. Nick Koston
f280efba8a
Ensure Bluetooth notifies can safely be cancelled after disconnect (#741) 2023-11-26 15:29:51 -06:00
J. Nick Koston
150ce726da
Fix races in bluetooth device connect (#740) 2023-11-26 15:21:54 -06:00
J. Nick Koston
108074a2dc
Add coverage for send_home_assistant_state (#739) 2023-11-26 14:16:08 -06:00
J. Nick Koston
67bd7efb29
Add test for GATT error while doing a read (#736) 2023-11-26 13:59:07 -06:00
J. Nick Koston
1a7ce50f63
Reduce mocking in client test to better simulate actual usage (#735) 2023-11-26 13:50:45 -06:00
J. Nick Koston
0d2f8f651d
Add coverage for bluetooth_proxy_feature_flags_compat (#734) 2023-11-26 13:33:30 -06:00
J. Nick Koston
6e08933a75
Fix race scheduling reconnect from zeroconf records (#731) 2023-11-26 10:32:16 -06:00
J. Nick Koston
991214ef52
Fix name logic with reconnect logic when APIConnection address lacks local (#728) 2023-11-26 09:56:32 -06:00
J. Nick Koston
3a2a2f473c
Add test to ensure connect task aborts when stopped (#727) 2023-11-26 09:29:33 -06:00
J. Nick Koston
b3d4189b07
Fix reconnect logic cancelling the connection while handshaking (#726) 2023-11-26 09:14:42 -06:00
J. Nick Koston
68dfc868d9
Add coverage to ensure encryption error results in maximum backoff (#725) 2023-11-26 08:14:51 -06:00
J. Nick Koston
7a7a99474e
Add coverage for reconnect logic downgrading logging level after first failure (#723) 2023-11-26 08:04:34 -06:00
J. Nick Koston
e8468647e2
Remove duplicate code in tests (#722) 2023-11-26 07:53:48 -06:00
J. Nick Koston
cd5ad769f0
Refactor reading varuints to significant simplify plaintext frame helper (#718) 2023-11-25 14:17:24 -06:00
J. Nick Koston
99380487a5
Add test for resolver timing out while connecting (#713) 2023-11-25 10:08:34 -06:00
J. Nick Koston
66e654084b
Add test for unexpected hello responses (#712) 2023-11-25 09:58:30 -06:00
J. Nick Koston
79686bf729
Fix client connection code swallowing unhandled exceptions as debug logging (#711) 2023-11-25 09:33:43 -06:00
J. Nick Koston
b7e319b26a
Add test for connecting with a password (#709) 2023-11-25 08:59:36 -06:00
J. Nick Koston
3711d54ffa
Add test for trying to finish an unstarted connection (#706) 2023-11-25 08:44:25 -06:00
J. Nick Koston
3abf9ff8d4
Make force_disconnect a normal function (#705) 2023-11-25 08:39:04 -06:00
J. Nick Koston
b67e19bd94
Add test for attempting to reuse an APIConnection object raises (#703) 2023-11-25 08:18:08 -06:00
J. Nick Koston
9edba66d30
Add test coverage for invalid protobuf messages (#701) 2023-11-25 08:10:26 -06:00
J. Nick Koston
67661dbd7f
Avoid expensive debug logging checks in packet processor (#700) 2023-11-25 07:51:48 -06:00
J. Nick Koston
e01f22d99a
Fix race in cleaning up connection (#698) 2023-11-25 07:11:34 -06:00
J. Nick Koston
7a57f1fa89
Optimize the frame helpers by improving cython typing (#691) 2023-11-24 12:12:32 -06:00
J. Nick Koston
0eb468ec61
Add test for corrupt or invalid encryption (#690) 2023-11-24 10:48:20 -06:00
J. Nick Koston
9d27f0c772
Reduce code duplication in noise tests (#689) 2023-11-24 10:38:43 -06:00