Commit Graph

22 Commits

Author SHA1 Message Date
J. Nick Koston 1e71d3f4ca
Sync time daily once ESPHome device has requested time once
If the ESPHome device requests time once we know it has Home Assistant
time enabled. Since the clock drifts over time, we will send time again
daily to ensure it keeps in sync.

fixes https://github.com/esphome/issues/issues/4424
2023-12-21 21:34:38 -10:00
J. Nick Koston e2365545f3
Make failure to increase the recv buffer size non-fatal (#802) 2023-12-19 10:00:06 -10:00
J. Nick Koston de1d08493d
Add support for passing multiple addresses to the client (#796) 2023-12-12 11:22:14 -10:00
J. Nick Koston b22258cca7
Small speed up to writing outgoing packets (#785) 2023-12-04 15:59:33 -10: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 18401dd7ed
Add some additional cython types to the connection module (#716) 2023-11-25 10:30:17 -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 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 c0a153c9f3
Speed up frame helpers (#696) 2023-11-24 12:40:33 -06:00
J. Nick Koston 0afa8c6832
Remove in_do_connect contextvar (#652) 2023-11-21 15:36:43 +01:00
J. Nick Koston 298aa01b00
Small cleanups to connection (#648) 2023-11-21 13:08:48 +01: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
J. Nick Koston 3ccb36b6fc
Refactor frame helper to avoid py conversions when processing packets (#641) 2023-11-16 12:24:50 -06:00
J. Nick Koston d6293d9177
Refactor frame helper to allow sending multiple packets at once (#640) 2023-11-16 10:31:02 -06:00
J. Nick Koston a15b96c76b
Send hello and login asynchronously to speed up connecting (#628) 2023-11-09 19:17:53 -06:00
J. Nick Koston 741308c93f
Add basic pre-commit to handle eol space (#592) 2023-10-19 14:00:36 -10:00
J. Nick Koston c5f4bfa561
Small reduction in connect overhead (#578) 2023-10-15 12:01:00 -10:00
J. Nick Koston b7449d4ded
Split connection process to enable faster reconnects (#576) 2023-10-14 16:03:12 -10:00
J. Nick Koston dc367b67bb
Narrow msg_types to only accept tuples (#574) 2023-10-13 18:25:27 -10:00
J. Nick Koston 74facc8fef
Improve performance of processing incoming packets (#573) 2023-10-13 18:01:34 -10:00