From 16df6f7e783510a8817cf3f8c731be550460be5f Mon Sep 17 00:00:00 2001 From: functionpointer Date: Sat, 23 Jan 2021 14:04:29 +0100 Subject: [PATCH] MySensors: fix gw_stop --- homeassistant/components/mysensors/gateway.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/homeassistant/components/mysensors/gateway.py b/homeassistant/components/mysensors/gateway.py index ddb5930eb71..189ff723d26 100644 --- a/homeassistant/components/mysensors/gateway.py +++ b/homeassistant/components/mysensors/gateway.py @@ -12,7 +12,7 @@ import voluptuous as vol from homeassistant.config_entries import ConfigEntry from homeassistant.const import EVENT_HOMEASSISTANT_STOP -from homeassistant.core import callback +from homeassistant.core import Event, callback import homeassistant.helpers.config_validation as cv from homeassistant.helpers.typing import HomeAssistantType @@ -235,7 +235,7 @@ async def _gw_start(hass: HomeAssistantType, gateway: BaseAsyncGateway): gateway.start() ) # store the connect task so it can be cancelled in gw_stop - async def stop_this_gw(): + async def stop_this_gw(_: Event): await gw_stop(hass, gateway) hass.bus.async_listen_once(EVENT_HOMEASSISTANT_STOP, stop_this_gw)