Clean mysensors on_unload (#51521)
* Clean mysensors on_unload * Fix docstring
This commit is contained in:
parent
59b5f94569
commit
984695e99d
10 changed files with 32 additions and 31 deletions
|
@ -292,7 +292,7 @@ async def _gw_start(hass: HomeAssistant, entry: ConfigEntry, gateway: BaseAsyncG
|
|||
async def stop_this_gw(_: Event):
|
||||
await gw_stop(hass, entry, gateway)
|
||||
|
||||
await on_unload(
|
||||
on_unload(
|
||||
hass,
|
||||
entry.entry_id,
|
||||
hass.bus.async_listen_once(EVENT_HOMEASSISTANT_STOP, stop_this_gw),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue