From 4bba90128fdacb7924153fcd13df72270f970f91 Mon Sep 17 00:00:00 2001 From: Chris Date: Sat, 18 Nov 2023 13:40:33 -0700 Subject: [PATCH] fix: missing argument on listener function (#274) * fix: missing argument on listener function * linting * more linting --- custom_components/openevse/__init__.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/custom_components/openevse/__init__.py b/custom_components/openevse/__init__.py index f64f04d..a014385 100644 --- a/custom_components/openevse/__init__.py +++ b/custom_components/openevse/__init__.py @@ -13,7 +13,7 @@ CONF_USERNAME, EVENT_HOMEASSISTANT_STARTED, ) -from homeassistant.core import Config, CoreState, HomeAssistant, callback +from homeassistant.core import Config, CoreState, Event, HomeAssistant, callback from homeassistant.exceptions import ConfigEntryNotReady from homeassistant.helpers import device_registry as dr from homeassistant.helpers.event import async_track_state_change @@ -78,7 +78,8 @@ async def handle_state_change( async def homeassistant_started_listener( hass: HomeAssistant, config_entry: ConfigEntry, - sensors: list, + sensors: list, # pylint: disable-next=unused-argument + event: Event = None, ): """Start tracking state changes after HomeAssistant has started.""" # Listen to sensor state changes so we can fire an event