Bump bluetooth-auto-recovery to 1.0.0 (#83800)

fixes https://github.com/home-assistant/core/issues/83673
This commit is contained in:
J. Nick Koston 2022-12-12 00:49:57 -10:00 committed by GitHub
parent 1667b4b19e
commit 876258e68a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 8 additions and 7 deletions

View file

@ -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