mirror of
https://github.com/home-assistant/core.git
synced 2025-11-08 02:19:31 +00:00
Bump bluetooth-auto-recovery to 1.0.0 (#83800)
fixes https://github.com/home-assistant/core/issues/83673
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user