Clean mysensors on_unload (#51521)

* Clean mysensors on_unload

* Fix docstring
This commit is contained in:
Martin Hjelmare 2021-06-05 20:02:32 +02:00 committed by GitHub
parent 59b5f94569
commit 984695e99d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
10 changed files with 32 additions and 31 deletions

View file

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