Commit Graph

407 Commits

Author SHA1 Message Date
dougiteixeira
51be39f484
Add device_class to text_sensor in ESPHome (#828) 2024-02-26 11:19:31 +13:00
J. Nick Koston
23a2f402fa
Convert functions that no longer await to be normal functions (#827) 2024-02-18 14:02:24 -06:00
J. Nick Koston
e2bbbf4da5
Avoid creating tasks for starting/finishing the connection (#826) 2024-02-16 20:47:26 -06:00
dependabot[bot]
d63f10d6e3
Bump black from 23.12.1 to 24.1.1 (#812)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: J. Nick Koston <nick@koston.org>
2024-02-04 21:39:47 -06: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
cf83582ef1
Refactor raw Bluetooth advs subscriptions (#797) 2023-12-12 14:15:09 -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
05ee53c16d
Add happy eyeballs support (RFC 8305) (#789) 2023-12-12 07:24:31 -10:00
Tucker Kern
5961535dda
Add support for fan preset modes (#616)
Co-authored-by: J. Nick Koston <nick@koston.org>
2023-12-05 16:34:57 -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
e1ddf270c5
Ensure connection is released if connecting is cancelled (#784) 2023-11-30 06:17:08 -10:00
Stefan Rado
87b7e831e8
Partially revert "Add humidity and aux heat support to climate (#631)" (#783) 2023-11-29 04:42:19 -06:00
Stefan Rado
0f14c82efa
Add humidity and aux heat support to climate (#631)
Co-authored-by: J. Nick Koston <nick@koston.org>
2023-11-29 11:54:14 +13:00
J. Nick Koston
e994092214
Remove duplicate line in execute_service (#781) 2023-11-28 12:31:32 -06:00
J. Nick Koston
5c8370c506
Use background task logic for the on_stop callback (#780) 2023-11-28 12:03:55 -06:00
J. Nick Koston
d40e046d1a
Reduce duplicate code in client connection setup (#779) 2023-11-28 11:59:54 -06:00
J. Nick Koston
b3a621f809
Make creating background tasks in the client a bound method (#778) 2023-11-28 11:54:29 -06:00
J. Nick Koston
d40acb1f85
Reduce duplicate Bluetooth message filtering code (#777) 2023-11-28 10:49:58 -06:00
J. Nick Koston
07499907d4
Refactor execute_service to avoid creating dict in the inner loop (#776) 2023-11-28 10:19:39 -06:00
J. Nick Koston
22fd2ab9af
Refactor list_entities_services to reduce unneeded local variables (#775) 2023-11-28 08:53:47 -06:00
J. Nick Koston
d0aaf25577
Use explict type checks for protobuf messages (#774) 2023-11-28 08:33:06 -06:00
J. Nick Koston
7c7bdfc585
Small refactor to GATT read to reduce code (#773) 2023-11-28 08:28:00 -06:00
J. Nick Koston
5ba404df48
Refactor bluetooth message handling to extract on_bluetooth_message (#772) 2023-11-28 08:23:19 -06:00
J. Nick Koston
5e0b6c1b07
Refactor bluetooth GATT writes to reduce duplicate code (#771) 2023-11-28 08:16:53 -06:00
J. Nick Koston
15e6279246
Allow specifying a timeout for bluetooth_gatt_start_notify (#770) 2023-11-28 08:07:33 -06:00
J. Nick Koston
844326a3a2
Remove unused variable from frame helper base (#769) 2023-11-28 08:05:45 -06:00
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
29faf6746f
Simplify similar code for building entity commands (#765) 2023-11-28 06:44:24 -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
b73270c0bd
Fix discover cli tool when address is missing from mdns (#758) 2023-11-27 08:21:51 -06:00
J. Nick Koston
b84a07cd0c
Fix voice assistant start task getting prematurely garbage collected (#753) 2023-11-26 17:54:18 -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
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
150ce726da
Fix races in bluetooth device connect (#740) 2023-11-26 15:21:54 -06:00
J. Nick Koston
f15acf1b1a
Reduce duplicate code for Bluetooth Advertisements (#738) 2023-11-26 14:08:05 -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
cea62efbba
Small cython cleanps to the frame helpers (#733) 2023-11-26 13:25:55 -06:00
J. Nick Koston
f230825651
Add discover cli tool (#732) 2023-11-26 11:04:17 -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
c9091cbefc
Avoid closing the churning zeroconf instances in the host resolver (#730) 2023-11-26 10:12:29 -06:00
J. Nick Koston
aded2d28b5
Avoid churning zeroconf instances in the host resolver when created in the reconnect logic (#729) 2023-11-26 10:05:24 -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
b3d4189b07
Fix reconnect logic cancelling the connection while handshaking (#726) 2023-11-26 09:14:42 -06:00
J. Nick Koston
908545768b
Update pre-commit with newer tools (#724) 2023-11-26 08:09:52 -06:00
J. Nick Koston
32821752a5
Remove unused pylint disables (#720) 2023-11-25 14:41:27 -06:00