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
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
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
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
4230871761
Cleanup protobuf object construction ( #715 )
2023-11-25 10:18:04 -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
3abf9ff8d4
Make force_disconnect a normal function ( #705 )
2023-11-25 08:39:04 -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
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
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
J. Nick Koston
77a7c5eaf4
Guard client connection asserts with if TYPE_CHECKING ( #659 )
2023-11-22 21:54:01 +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
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
c1a0500ecb
Update some legacy python code to python 3.9 ( #635 )
2023-11-11 14:19:04 -06:00
J. Nick Koston
b227f79dad
Refactor bluetooth client functions to reduce duplicate code ( #629 )
2023-11-10 17:14:00 -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
ef9f9bf136
Ensure an empty noise_psk or expected_name is treated as None ( #623 )
2023-11-08 18:00:28 -06:00
J. Nick Koston
7ac7742c91
Ensure passed params are always a str ( #622 )
2023-11-08 17:26:51 -06:00
Daniel Dunn
5a8c0d8e23
Updated fork of PR for Text input components ( #532 )
...
Co-authored-by: Maurits <maurits@vloop.nl>
Co-authored-by: Daniel Dunn <dannydunn@eternityforest.com>
Co-authored-by: J. Nick Koston <nick@koston.org>
Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com>
2023-10-25 15:35:04 +13:00
J. Nick Koston
f34bfb5d1c
Simplify raw ble advertisements callbacks ( #594 )
2023-10-20 17:34:05 -10:00
J. Nick Koston
d950d90245
Improve consistency of name logging ( #577 )
2023-10-14 17:04:27 -10:00
J. Nick Koston
b7449d4ded
Split connection process to enable faster reconnects ( #576 )
2023-10-14 16:03:12 -10:00
Jesse Hills
a17dc3c380
Add voice assistant audio settings ( #556 )
2023-09-27 08:34:07 +13:00
J. Nick Koston
11a19438cb
Avoid a few calls to fetch loop time ( #533 )
2023-09-04 12:56:23 -05:00
J. Nick Koston
4c992365e0
Increase default bluetooth disconnect timeout to 20s ( #528 )
2023-09-03 08:28:39 -05:00
J. Nick Koston
eebc7d99f2
Make entity info and state mappings constants ( #523 )
2023-08-15 22:19:46 -05:00
Jesse Hills
2c7b2ed1a0
Add wake word capability to voice assistant ( #519 )
2023-08-10 16:03:15 +12:00
J. Nick Koston
90cb44224a
Reduce memory churn by avoiding reprocessing BluetoothLERawAdvertisement ( #507 )
2023-07-27 08:17:40 -05:00