Commit Graph

149 Commits

Author SHA1 Message Date
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
Jesse Hills
2103a7467a
Process messages in a separate task loop (#263) 2022-09-30 10:59:40 +13:00
Jesse Hills
c5779b3e17
Change BLE advertisement data to bytes (#262) 2022-09-30 09:12:49 +13:00
Jesse Hills
45d727cc03
A few fixes for BLE GATT (#261) 2022-09-30 07:25:18 +13:00
Jesse Hills
6a82766553
Add Bluetooth GATT calls (#259) 2022-09-28 12:50:37 -04:00
Jesse Hills
4426a94638
Add has_bluetooth_proxy flag to device info (#247) 2022-08-22 15:50:43 +12:00
Jesse Hills
1273d689f1
Implement Bluetooth LE advertisement receiving (#246) 2022-08-22 15:27:46 +12:00
J. Nick Koston
1ffe252f6f
Change out asyncio.wait_for with async_timeout (#243) 2022-08-22 15:26:53 +12:00
Peter Galantha
7dc2a0d072
state class TOTAL added (#229) 2022-07-07 11:41:22 +12:00
Suryandaru Triandana
5831eb5f2a
Increase ListEntitiesRequest timeout to 30 seconds (#234) 2022-07-07 11:39:01 +12:00
Jesse Hills
c502231194
Assume volume (and therefore mute) is always supported (#215) 2022-05-18 21:50:06 +12:00
dependabot[bot]
6b6828043b
Bump mypy from 0.942 to 0.950 (#204)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com>
2022-05-18 15:39:03 +12:00
Jesse Hills
fcd529bb32
Add media player entities (#214) 2022-05-18 13:28:40 +12:00
Otto Winter
3752b8280e
Fix no timeout for handshake (#176) 2022-02-09 16:29:50 +01:00
dependabot[bot]
1eebbfc1e0
Bump black from 21.12b0 to 22.1.0 (#169)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Otto winter <otto@otto-winter.com>
2022-01-31 17:38:57 +01:00
Otto Winter
23467210b1
Export BadNameAPIError in main module (#166) 2022-01-23 20:23:13 +01:00
Otto Winter
9964034f18
Expect a name for connections (#122)
Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com>
2022-01-20 12:03:36 +01:00
Keilin Bickar
d0d1e526f5
Add lock entity (#158) 2022-01-11 14:29:19 +13:00
dependabot[bot]
014d81350a
Bump mypy from 0.910 to 0.930 (#156)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Otto winter <otto@otto-winter.com>
2022-01-08 13:57:56 +01:00
david reid
8fcb3a58dd
Catch conn reset (#159) 2022-01-05 08:30:22 +13:00
Franck Nijhof
34180576ca
Add device class support to Switch (#157) 2021-12-28 23:04:59 +13:00
Jesse Hills
759e2ef133
Add mode to number entities (#148) 2021-11-30 22:23:18 +13:00
Jesse Hills
da0ecd8437
Add unit_of_measurement to number components (#147) 2021-11-30 20:34:30 +13:00
Jesse Hills
3494f804c1
Button device class (#146) 2021-11-30 16:53:22 +13:00