Commit Graph

172 Commits

Author SHA1 Message Date
J. Nick Koston 51d581dd9c
Cooldown before reconnecting on expected disconnect (#397) 2023-03-05 18:54:54 -10:00
J. Nick Koston 81f6e67038
Fix disconnect message not being sent when disconnecting during hello phase (#396) 2023-03-05 18:52:55 -10:00
Fredrik Gustafsson 3e60332a71
Fix bluetooth_device_connect returning prematurely from a disconnect (#391) 2023-02-24 08:31:24 -06:00
Jesse Hills 4860af1edf
Add current_temp step (#384) 2023-02-20 13:17:47 +13:00
J. Nick Koston 0656b65ca1
Ensure we hold strong references to tasks (#382) 2023-02-13 14:11:58 +13:00
J. Nick Koston f99db3577c
Remove useless on_msg function in subscribe_logs (#380) 2023-02-13 11:42:14 +13:00
Alexander Momchilov c62a0eff3b
Add `supports_stop` to `CoverInfo` (#276)
Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com>
2023-02-13 11:41:21 +13:00
dependabot[bot] 422f25f776
Bump pylint from 2.15.10 to 2.16.1 (#374)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com>
2023-02-09 12:03:38 +13:00
Michael Muré 79190d02bd
climate: add support for quiet fan mode (#232)
Co-authored-by: J. Nick Koston <nick@koston.org>
Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com>
2023-02-09 11:50:38 +13:00
Jesse Hills acf594d4c7
Add friendly_name to device info api (#362) 2023-01-16 12:10:04 +13:00
J. Nick Koston a83838d025
Fix Invalid protobuf message: expected bytes, bytearray found and add coverage (#359) 2023-01-07 14:24:24 -10:00
J. Nick Koston 025376852b
Clear on_stop after calling instead of using a separate `_on_stop_called` bool (#357) 2023-01-07 14:16:34 -10:00
J. Nick Koston 284b767d8d
Refactor cleanup to be a normal function (#355) 2023-01-06 21:42:39 -05:00
J. Nick Koston 2886d361f0
Simplify connection flow with an asyncio.Protocol (#352) 2023-01-05 23:24:10 -05:00
J. Nick Koston 049dc8bb56
Speed up parsing/conversion of BluetoothLEAdvertisement (#353) 2023-01-05 21:23:40 -05:00
J. Nick Koston 15edff86a3
Log the packet type when we get an invalid protobuf message (#343) 2023-01-03 17:40:17 -05:00
J. Nick Koston b34664e44c
Fix failure to reconnect when the process task raises an exception during decoding a protobuf message (#339) 2022-12-13 10:31:12 -10:00
Alex Yao 3e99cd3177
Only start task if existing one is done (#337) 2022-12-12 20:18:35 -10:00
J. Nick Koston 6d4b9df969
Small speed up to parsing LE advertisement data (#330) 2022-12-04 17:21:19 -05:00
J. Nick Koston 9d9d19a2c1
Fix leak if send_message_callback_response raises (#334) 2022-12-04 17:20:12 -05:00
J. Nick Koston e588e84e17
Handle socket reset errors while reading (#333) 2022-12-04 17:18:38 -05:00
J. Nick Koston 577868a84c
Add method to cancel bluetooth_gatt_start_notify upon ble device disconnect (#329) 2022-12-02 09:51:03 -10:00
J. Nick Koston de5cdfa230
Callback messages to listeners by type (#328) 2022-12-02 09:36:58 -10:00
J. Nick Koston 3692478455
Optimize throughput of api to decrease latency (#327) 2022-12-02 14:12:19 -05:00
J. Nick Koston 6273f785f4
Reduce number of calls to readexactly (#324) 2022-12-01 11:47:26 +13:00
J. Nick Koston a452e738ff
Move message parsing out of the read loop (#323) 2022-12-01 11:42:15 +13:00
J. Nick Koston 585d4cb569
Small speed ups to the bluetooth advertisement converts (#325) 2022-12-01 11:38:09 +13:00
J. Nick Koston 4f7a1faddd
Fix bluetooth write without response (#326) 2022-12-01 11:36:58 +13:00
J. Nick Koston a937d9d85a
Add address_type to BluetoothLEAdvertisementResponse and BluetoothDeviceRequest (#320) 2022-11-29 17:00:27 +13:00
J. Nick Koston e3094db6ad
Active BLE connection v3 (#317) 2022-11-29 15:06:13 +13:00
Jesse Hills c3d610e45a
Increase timeout while waiting for ListEntities to be done (#318) 2022-11-28 23:07:58 +13:00
J. Nick Koston ac303e8986
Fix connection subscription leak on cancelation (#316) 2022-11-28 23:06:06 +13:00
J. Nick Koston 14a2e30ec3
Wait for BLE disconnect when connecting timeouts (#310) 2022-11-23 07:32:04 +13:00
Jesse Hills c2ed072c88
Protobuf version upgrades (#307) 2022-11-23 07:20:23 +13:00
Franck Nijhof d9791d1874
Add device class support to number (#309) 2022-11-18 08:00:02 +13:00
Jesse Hills 356e4fbd8f
Catch error when task is stopped (#306) 2022-11-15 20:26:11 +13:00
J. Nick Koston dbfff4397e
Fix BLE writes timing out (#298) 2022-11-07 08:32:32 +13:00
J. Nick Koston c6e824e778
Improve bluetooth error reporting (#297)
Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com>
2022-11-01 09:32:40 +13:00
J. Nick Koston 6ea1da7620
Add a mapping for ESP_GATT_ERROR (#296) 2022-10-31 13:39:01 +13:00
Jesse Hills c7edc2e601
Raise GATT errors on read and write etc (#272)
Co-authored-by: J. Nick Koston <nick@koston.org>
2022-10-31 11:38:24 +13:00
J. Nick Koston cb6b1595b7
Fix race while disconnecting after connect timeout (#295) 2022-10-31 11:26:09 +13:00
J. Nick Koston 56cceea672
Disconnect ble device if connect attempt fails to recover slot (#293) 2022-10-31 09:09:01 +13:00
J. Nick Koston d4c44a3ccf
Add esp ble error code mappings (#292) 2022-10-29 22:43:55 +13:00
Jesse Hills 978c523e09
Get manufacturer name string from device (#290) 2022-10-25 17:00:07 +13:00
J. Nick Koston 745e0b688e
Adjust ble timeouts to be longer than bleak timeouts (#287) 2022-10-25 16:12:52 +13:00
Alex Yao b550b294c7
Fix permanent disconnect issue (#273) 2022-10-24 07:11:16 -05:00
Jesse Hills 712f23d2b2
Fix process_task not ending correctly (#271)
Co-authored-by: J. Nick Koston <nick@koston.org>
2022-10-07 09:37:47 +13:00
Jesse Hills a6f18ae9df
Only try remove callbacks when not None (#268) 2022-10-03 12:32:13 +13:00
J. Nick Koston 4a1715536f
Increase underlying socket receive buffer (#267) 2022-10-03 11:32:26 +13:00
Jesse Hills 527420464d
Change has_bluetooth_proxy to a version (#264) 2022-09-29 21:51:03 -04:00