Commit graph

138 commits

Author SHA1 Message Date
GitHub Action
a093057420 [ci skip] Translation update 2022-08-29 00:27:51 +00:00
J. Nick Koston
3938015c93
Add support for scanners that do not provide connectable devices (#77132) 2022-08-22 14:02:26 -04:00
GitHub Action
296e52d918 [ci skip] Translation update 2022-08-21 00:24:25 +00:00
GitHub Action
a434d755b3 [ci skip] Translation update 2022-08-19 00:27:31 +00:00
GitHub Action
ff3fd4c29d [ci skip] Translation update 2022-08-16 00:30:51 +00:00
Jc2k
46369b274b
Initial binary_sensor support for Xiaomi BLE (#76635) 2022-08-11 22:25:24 -10:00
J. Nick Koston
4f064268b0
Add missing _abort_if_unique_id_configured to ble integrations (#76624) 2022-08-11 13:55:52 -10:00
Jc2k
51ca74b3d1
Fix titles for discoveries and device names in xiaomi_ble (#76618) 2022-08-11 23:24:55 +01:00
Jc2k
6ad2708946
Support polling the MiFlora battery (#76342) 2022-08-11 10:10:18 +02:00
GitHub Action
519d478d61 [ci skip] Translation update 2022-08-11 00:26:23 +00:00
Jc2k
7d427ddbd4
Allow parsing to happen in PassiveBluetoothProcessorCoordinator (#76384) 2022-08-09 06:36:39 +01:00
GitHub Action
32a2999b85 [ci skip] Translation update 2022-08-06 00:24:46 +00:00
GitHub Action
cb46441b74 [ci skip] Translation update 2022-08-05 00:28:51 +00:00
GitHub Action
e2e277490b [ci skip] Translation update 2022-08-04 00:27:38 +00:00
GitHub Action
e09bbc749c [ci skip] Translation update 2022-08-03 00:28:23 +00:00
Jc2k
fbf3c1a5d4
Fix Xiaomi BLE UI string issues (#76099) 2022-08-02 22:05:36 +01:00
Jc2k
a0adfb9e62
Fix serialization of Xiaomi BLE reauth flow (#76095)
* Use data instead of context to fix serialisation bug

* Test change to async_start_reauth
2022-08-02 21:38:38 +01:00
Jc2k
f043203b56
Add optional context parameter to async_start_reauth (#76077) 2022-08-02 18:20:37 +02:00
Jc2k
d69d7a8761
Fix typo in new xiaomi_ble string (#76076) 2022-08-02 14:11:06 +02:00
Jc2k
652a8e9e8a
Add reauth flow to xiaomi_ble, fixes problem adding LYWSD03MMC (#76028) 2022-08-01 22:04:16 +01:00
J. Nick Koston
80a9659524
Update to bleak 0.15 (#75941) 2022-07-29 17:53:33 -07:00
GitHub Action
c4ad6d46ae [ci skip] Translation update 2022-07-30 00:22:48 +00:00
Bob van Mierlo
69a0943205
Increase the discovery timeout (#75948) 2022-07-29 21:46:30 +01:00
Jc2k
ca6676a708
Fix xiaomi_ble discovery for devices that don't put the fe95 uuid in service_uuids (#75923) 2022-07-29 14:28:39 +02:00
GitHub Action
a1d96175a8 [ci skip] Translation update 2022-07-29 00:25:31 +00:00
Jc2k
10356b9379
Fix Xiaomi BLE not detecting encryption for some devices (#75851) 2022-07-28 19:10:37 +01:00
Jc2k
f8b115dd9d
Add xiaomi_ble voltage, consumable and formaldehyde sensors (#75807)
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2022-07-27 11:28:58 +01:00
GitHub Action
33c635809c [ci skip] Translation update 2022-07-27 00:28:57 +00:00
J. Nick Koston
1e85ddabfd
Fix startup race in BLE integrations (#75780) 2022-07-26 09:29:23 -10:00
Franck Nijhof
5e45b0baf9
Automatically set up Xiaomi BLE during onboarding (#75748) 2022-07-26 08:03:31 +01:00
GitHub Action
9c725bc106 [ci skip] Translation update 2022-07-26 00:26:43 +00:00
GitHub Action
4a50010458 [ci skip] Translation update 2022-07-25 00:25:55 +00:00
Jc2k
e18819c678
Support for encrypted BLE MiBeacon devices (#75677)
* Support for encrypted devices

* Sensor should use bindkey if available

* Error message if encryption fails

* Let mypy know this is always set by now

* Towards supporting encryption in step_user

* Add tests for the 4 new happy paths

* Add test coverage for failure cases

* Add strings

* Bump to 0.5.1. Legacy MiBeacon does not use an authentication token, so harder to detect incorrect key

* Add _title() helper

* Fix test after rebase

* Update homeassistant/components/xiaomi_ble/strings.json

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>

* Remove unused lines

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2022-07-24 21:00:56 +02:00
J. Nick Koston
da131beced
Split bluetooth coordinator into two classes (#75675) 2022-07-23 19:33:47 -05:00
GitHub Action
19f82e5201 [ci skip] Translation update 2022-07-24 00:28:19 +00:00
J. Nick Koston
c5afaa2e6a
Refactor PassiveBluetoothDataUpdateCoordinator to support multiple platforms (#75642) 2022-07-23 13:03:01 -05:00
Jc2k
b60a59270c
Add support for rest of sensors for HHCCJCY01 (#75646) 2022-07-23 09:40:56 +01:00
Jc2k
402e533fef
Initial xiaomi_ble integration (#75618)
* Initial xiaomi_ble integration

* black

* Update homeassistant/components/xiaomi_ble/config_flow.py

Co-authored-by: Ernst Klamer <e.klamer@gmail.com>

* Update homeassistant/components/xiaomi_ble/config_flow.py

Co-authored-by: Ernst Klamer <e.klamer@gmail.com>

* Apply suggestions from code review

Co-authored-by: Ernst Klamer <e.klamer@gmail.com>

* Update tests/components/xiaomi_ble/test_config_flow.py

Co-authored-by: Ernst Klamer <e.klamer@gmail.com>

* Update homeassistant/components/xiaomi_ble/sensor.py

Co-authored-by: Ernst Klamer <e.klamer@gmail.com>

* Update tests/components/xiaomi_ble/test_config_flow.py

Co-authored-by: Ernst Klamer <e.klamer@gmail.com>

* Remove debug code

* Need 'proper' MAC when running tests on linux

* Need to use proper MAC so validation passes

* Add tests for already_in_progress and already_configured

* copy test, add session fixture

* fix test

Co-authored-by: Ernst Klamer <e.klamer@gmail.com>
Co-authored-by: J. Nick Koston <nick@koston.org>
2022-07-23 00:55:06 +02:00