Commit Graph

892 Commits

Author SHA1 Message Date
J. Nick Koston
d592f1e7ab
Reverse future done checks so we know they are actually reachable (#708) 2023-11-25 08:49:54 -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
402d6fe113
Remove unreachable check in connection send_messages (#704) 2023-11-25 08:32:27 -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
554190228e
Remove unreachable code in connection (#702) 2023-11-25 08:10:37 -06:00
J. Nick Koston
9edba66d30
Add test coverage for invalid protobuf messages (#701) 2023-11-25 08:10:26 -06:00
github-actions[bot]
cd8977e480 Bump version to 19.0.0 2023-11-25 13:52:03 +00:00
J. Nick Koston
67661dbd7f
Avoid expensive debug logging checks in packet processor (#700) 2023-11-25 07:51:48 -06:00
github-actions[bot]
0d25cc92a0 Bump version to 18.5.10 2023-11-25 13:11:51 +00:00
J. Nick Koston
e01f22d99a
Fix race in cleaning up connection (#698) 2023-11-25 07:11:34 -06:00
J. Nick Koston
c0a153c9f3
Speed up frame helpers (#696) 2023-11-24 12:40:33 -06:00
J. Nick Koston
065c8e715d
Fix signedness of server name check (#697) 2023-11-24 12:35:58 -06:00
github-actions[bot]
9905efd8d5 Bump version to 18.5.9 2023-11-24 18:18:41 +00:00
J. Nick Koston
9c63f3205a
Remove unused slot in the noise frame helper (#695) 2023-11-24 12:18:26 -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
33d1d3d8c4
Speed up noise frame helper (#693) 2023-11-24 12:04:12 -06:00
J. Nick Koston
aa3b8af246
Fix signedness with incoming plaintext data (#694) 2023-11-24 12:01:02 -06:00
J. Nick Koston
663f7ca950
Speed up plain text frame helper (#692) 2023-11-24 11:46:15 -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
b31472c569
Refactor noise _error_on_incorrect_preamble to improve coverage (#683) 2023-11-24 08:36:31 -06:00
J. Nick Koston
39aba56958
Remove unreachable code in noise frame helper (#682) 2023-11-24 08:29:42 -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
github-actions[bot]
304379ff48 Bump version to 18.5.8 2023-11-24 12:55:46 +00:00
dependabot[bot]
e1249494e5
Bump mypy from 1.7.0 to 1.7.1 (#680)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-11-24 06:55:27 -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
f1a9f4b452
Small speed up to client callbacks (#678) 2023-11-23 11:46: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
1f5b538502
Remove unneeded local variables from previous refactoring (#676) 2023-11-23 11:27:16 -06:00
J. Nick Koston
e7d27e307e
Refactor client class to split callback conversion functions into their own module (#675) 2023-11-23 11:23:51 -06:00
J. Nick Koston
174fb8284b
Refactor state and service response converter to prepare to relocate code (#674) 2023-11-23 11:06:42 -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
96781616b8
Fix unbound variable in bluetooth logging when connection fails (#672) 2023-11-23 10:38:35 -06:00
J. Nick Koston
250f786c38
Add benchmarks for calling back bluetooth packets (#671) 2023-11-23 10:34:11 -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
00a6ce9f6a
Pass server name to zeroconf when known (#665) 2023-11-23 07:25:05 -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
70a670f2b2
Rename internal client connection get function to _get_connection (#661) 2023-11-22 22:32:22 +01:00
J. Nick Koston
ac43747196
Refactor connection checks to return APIConnection to avoid many asserts (#660) 2023-11-22 22:22:10 +01:00