Bump bluetooth-auto-recovery to 1.0.0 (#83800)
fixes https://github.com/home-assistant/core/issues/83673
This commit is contained in:
parent
1667b4b19e
commit
876258e68a
6 changed files with 8 additions and 7 deletions
|
@ -68,9 +68,9 @@ def async_load_history_from_system(
|
|||
return all_loaded_history, connectable_loaded_history
|
||||
|
||||
|
||||
async def async_reset_adapter(adapter: str | None) -> bool | None:
|
||||
async def async_reset_adapter(adapter: str | None, mac_address: str) -> bool | None:
|
||||
"""Reset the adapter."""
|
||||
if adapter and adapter.startswith("hci"):
|
||||
adapter_id = int(adapter[3:])
|
||||
return await recover_adapter(adapter_id)
|
||||
return await recover_adapter(adapter_id, mac_address)
|
||||
return False
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue