Skip to content

Commit

Permalink
Fix ConfigEntry in coordinator
Browse files Browse the repository at this point in the history
  • Loading branch information
alexdelprete committed Jul 6, 2024
1 parent e59f98f commit 9713b96
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions custom_components/abb_powerone_pvi_sunspec/coordinator.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@
import logging
from datetime import datetime, timedelta

from homeassistant.config_entries import ConfigEntry
from homeassistant.core import HomeAssistant
from homeassistant.helpers.update_coordinator import DataUpdateCoordinator, UpdateFailed

from . import ABBPowerOneFimerConfigEntry
from .api import ABBPowerOneFimerAPI
from .const import (
CONF_BASE_ADDR,
Expand All @@ -29,11 +29,9 @@
class ABBPowerOneFimerCoordinator(DataUpdateCoordinator):
"""Class to manage fetching data from the API."""

config_entry: ABBPowerOneFimerConfigEntry
config_entry: ConfigEntry

def __init__(
self, hass: HomeAssistant, config_entry: ABBPowerOneFimerConfigEntry
) -> None:
def __init__(self, hass: HomeAssistant, config_entry: ConfigEntry) -> None:
"""Initialize data update coordinator."""

# get scan_interval from user config
Expand Down

0 comments on commit 9713b96

Please sign in to comment.