Skip to content

Commit

Permalink
fix: missing argument on listener function (#274)
Browse files Browse the repository at this point in the history
* fix: missing argument on listener function

* linting

* more linting
  • Loading branch information
firstof9 authored Nov 18, 2023
1 parent a8dd09e commit 4bba901
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions custom_components/openevse/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 4bba901

Please sign in to comment.