Fix bluetooth manager stop missing callback decorator (#111232)
This commit is contained in:
parent
5d4dc63118
commit
b60ca4260c
1 changed files with 1 additions and 1 deletions
|
@ -151,7 +151,7 @@ async def async_setup(hass: HomeAssistant, config: ConfigType) -> bool:
|
|||
set_manager(manager)
|
||||
await manager.async_setup()
|
||||
hass.bus.async_listen_once(
|
||||
EVENT_HOMEASSISTANT_STOP, lambda event: manager.async_stop()
|
||||
EVENT_HOMEASSISTANT_STOP, hass_callback(lambda event: manager.async_stop())
|
||||
)
|
||||
hass.data[DATA_MANAGER] = models.MANAGER = manager
|
||||
adapters = await manager.async_get_bluetooth_adapters()
|
||||
|
|
Loading…
Add table
Reference in a new issue