Commit graph

18 commits

Author SHA1 Message Date
epenet
83e77720e9
Improve type hints for mock_bluetooth/enable_bluetooth () 2024-05-30 22:16:45 -04:00
J. Nick Koston
2b2b46c774
Bump habluetooth to 3.0.1 () 2024-05-03 12:15:51 +02:00
Joost Lekkerkerker
2ef0521d3d
Use is in enum comparison in config flow tests U-Z ()
* Use right enum expression U-Z

* Fix
2024-04-02 23:09:56 +02:00
Joost Lekkerkerker
6bb4e7d62c
Bump ruff to 0.3.4 ()
Co-authored-by: Sid <27780930+autinerd@users.noreply.github.com>
Co-authored-by: Marc Mueller <30130371+cdce8p@users.noreply.github.com>
Co-authored-by: J. Nick Koston <nick@koston.org>
2024-03-26 00:02:16 +01:00
Marc Mueller
32f3f46542
Add empty line after module docstring (2) [tests.components] () 2024-03-08 19:16:21 +01:00
J. Nick Koston
4378a171b2
Use new config entry update/abort helper in yalexs_ble ()
Use new config entry update/abort helper in yalexs_ble

uses the new helper from https://github.com/home-assistant/core/pull/108034
2024-01-22 22:25:48 +01:00
Marc Mueller
52fc3c26d1
Fix yalex_ble test RuntimeWarning () 2023-08-03 12:55:18 -10:00
J. Nick Koston
763b898621
Add always connected option to Yale Access Bluetooth ()
* Add always connected option to Yale Access Bluetooth

If the lock does not support push updates via advertisements or you want lock operation to be more responsive, you can enable always connected mode. Always connected will cause the lock to stay connected to Home Assistant via Bluetooth, which will use more battery.

* Update homeassistant/components/yalexs_ble/config_flow.py

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

---------

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2023-05-18 10:48:04 -05:00
J. Nick Koston
c3043fb0ee
Bump bluetooth deps for bleak 0.20 ()
Co-authored-by: K <z@kwi.li>
2023-03-20 12:06:15 +01:00
J. Nick Koston
b2a1df19a0
Switch yalexs_ble to use no_devices_found () 2023-02-16 22:50:49 +01:00
J. Nick Koston
f237bb14ca
Add strict typing to yalexs_ble ()
* Add strict typing to yalexs_ble

* Add strict typing to yalexs_ble

* Add strict typing to yalexs_ble
2023-02-14 11:38:51 -05:00
J. Nick Koston
84d14cc76a
Add reauthentication support to Yale Access Bluetooth ()
* Bump yalexs_ble to 1.12.11 to fix reconnect when services fail to resolve

changelog: https://github.com/bdraco/yalexs-ble/compare/v1.12.8...v1.12.11

* bump to make it work with esphome proxy as well

* empty

* Add reauth support to yalexs_ble

* lint

* reduce

* tweak

* tweak

* test for reauth

* Apply suggestions from code review

* cleanup
2023-02-09 22:24:14 +01:00
J. Nick Koston
fec887420d
Fix delay setting up new Yale Access Bluetooth entries ()
Entries took a while to setup because of the
async_wait_init_flow_finish call in _async_setup_component

The delay was so long that users thought the integration
was broken

We had a wait in place for advertisements to arrive
during discovery in case the lock was not
yet seen.  Since integration discovery is deferred
until after startup this wait it no longer needed
2022-12-09 20:55:06 -05:00
J. Nick Koston
d12cbab6c4
Bump bleak to 0.19.0 () 2022-10-15 13:57:23 -04:00
J. Nick Koston
120c76524d
Fix incorrect key update for Gen2 locks with yalexs_ble () 2022-08-26 09:33:35 +02:00
J. Nick Koston
3938015c93
Add support for scanners that do not provide connectable devices () 2022-08-22 14:02:26 -04:00
J. Nick Koston
58883feaf6
Small cleanups to Yale Access Bluetooth ()
- Abort the discovery flow if the user has already
  started interacting with a user flow or bluetooth
  discovery

- Remove docs_url from the flow

- Fix useless return
2022-08-13 09:55:48 +02:00
J. Nick Koston
bb0038319d
Add Yale Access Bluetooth integration () 2022-08-10 10:08:02 -10:00