Commit graph

13 commits

Author SHA1 Message Date
Ernst Klamer
4e964c3819
Bump xiaomi-ble to 0.19.1 (#96967)
* Bump xiaomi-ble to 0.19.0

* Bump xiaomi-ble to 0.19.1

---------

Co-authored-by: J. Nick Koston <nick@koston.org>
2023-07-21 00:13:56 -05:00
Franck Nijhof
fcb612cd6f
Collection of code styling tweaks (#87344) 2023-02-03 23:51:27 +01:00
J. Nick Koston
3938015c93
Add support for scanners that do not provide connectable devices (#77132) 2022-08-22 14:02:26 -04: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
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
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
Bob van Mierlo
69a0943205
Increase the discovery timeout (#75948) 2022-07-29 21:46:30 +01:00
Jc2k
10356b9379
Fix Xiaomi BLE not detecting encryption for some devices (#75851) 2022-07-28 19:10:37 +01:00
Franck Nijhof
5e45b0baf9
Automatically set up Xiaomi BLE during onboarding (#75748) 2022-07-26 08:03:31 +01: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
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