Commit Graph

117 Commits

Author SHA1 Message Date
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
J. Nick Koston
412a78aa04
Test that we detect bad noise psks (#688) 2023-11-24 10:29:55 -06:00
J. Nick Koston
837d6ad650
Add test for wrong protocol in noise (#687) 2023-11-24 09:57:31 -06:00
J. Nick Koston
6453aa87f6
Reduce code duplication in noise tests (#686) 2023-11-24 09:50:00 -06:00
J. Nick Koston
095ef822f1
Fix error in noise frame helper were we could write when the writer was unset (#685) 2023-11-24 09:42:56 -06:00
J. Nick Koston
dba6c72735
Add test for empty noise hello (#684) 2023-11-24 09:01:40 -06:00
J. Nick Koston
c21e32fda7
Fix handshake getting the wrong exception when the ESP drops the connection because its not using noise (#681) 2023-11-24 08:26:12 -06:00
J. Nick Koston
83b4f43610
Refactor frame helper to get debug state from connection (#679) 2023-11-23 12:20:52 -06:00
J. Nick Koston
a0cf5d0e90
Add coverage for subscribe_home_assistant_states (#677) 2023-11-23 11:37:25 -06:00
J. Nick Koston
0347302222
Add coverage for bluetooth connection free responses (#673) 2023-11-23 10:49:24 -06:00
J. Nick Koston
33966938f2
Add coverage for bluetooth advertising (#670) 2023-11-23 10:20:56 -06:00
J. Nick Koston
1cc6b3ed52
Fix missed GATT notify if the device responds immediately after subscribe (#669) 2023-11-23 09:46:56 -06:00
J. Nick Koston
cf2fd3c92a
Add test coverage for bluetooth GATT notify (#668) 2023-11-23 09:17:41 -06:00
J. Nick Koston
b8427c4cbb
Fix race running disconnect callback in reconnect logic (#666) 2023-11-23 08:39:03 -06:00
J. Nick Koston
df0dbadae7
Ensure scope_id is preserved from zeroconf resolution on python versions that support it (#664) 2023-11-23 07:48:34 -06:00
J. Nick Koston
e1447dd249
Improve connection tests for handling pings (#663) 2023-11-23 13:36:30 +01:00
J. Nick Koston
7a1fcc33bd
Add additional test coverage to the client module (#662) 2023-11-22 23:11:29 +01:00
J. Nick Koston
3fb5f322b5
Add coverage for fetching GATT services (#658) 2023-11-22 21:57:26 +01:00
J. Nick Koston
d8cace0b26
Reduce duplication in bluetooth gatt read code (#657) 2023-11-21 23:24:54 +01:00
J. Nick Koston
432a3e65b6
Add more missing command tests (#656) 2023-11-21 17:26:09 +01:00
J. Nick Koston
7dd0992f52
Add siren tests (#655) 2023-11-21 17:18:58 +01:00
J. Nick Koston
54452b4b94
Add button tests (#654) 2023-11-21 17:09:11 +01:00
J. Nick Koston
2501ea4275
Add additional coverage for starting noise connections (#653) 2023-11-21 16:42:23 +01:00
J. Nick Koston
0afa8c6832
Remove in_do_connect contextvar (#652) 2023-11-21 15:36:43 +01:00
J. Nick Koston
f88b15e33b
Fix eof_received not raising SocketClosedAPIError (#651) 2023-11-21 14:56:31 +01:00
J. Nick Koston
ccf2f1f245
Add tests for ping responses (#650) 2023-11-21 14:01:58 +01:00
J. Nick Koston
298aa01b00
Small cleanups to connection (#648) 2023-11-21 13:08:48 +01:00
J. Nick Koston
f783438a7d
Ensure expected_disconnect is True when sending DisconnectResponse fails (#646) 2023-11-20 19:08:29 +01:00
J. Nick Koston
c76d741cb8
Refactor to reduce duplicate connection code (#644) 2023-11-18 15:10:40 -06:00
J. Nick Koston
b12903e2e7
Refactor zeroconf code to avoid creating instances when one is unneeded (#643) 2023-11-17 13:11:36 -06:00