Remove unnecessary argument from discovergy coordinator (#100058)
parent
63852c565f
commit
7acc606dd8
|
@ -62,7 +62,6 @@ async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry) -> bool:
|
|||
# so we have data when entities are added
|
||||
coordinator = DiscovergyUpdateCoordinator(
|
||||
hass=hass,
|
||||
config_entry=entry,
|
||||
meter=meter,
|
||||
discovergy_client=discovergy_data.api_client,
|
||||
)
|
||||
|
|
|
@ -8,7 +8,6 @@ from pydiscovergy import Discovergy
|
|||
from pydiscovergy.error import AccessTokenExpired, HTTPError
|
||||
from pydiscovergy.models import Meter, Reading
|
||||
|
||||
from homeassistant.config_entries import ConfigEntry
|
||||
from homeassistant.core import HomeAssistant
|
||||
from homeassistant.exceptions import ConfigEntryAuthFailed
|
||||
from homeassistant.helpers.update_coordinator import DataUpdateCoordinator, UpdateFailed
|
||||
|
@ -21,19 +20,16 @@ _LOGGER = logging.getLogger(__name__)
|
|||
class DiscovergyUpdateCoordinator(DataUpdateCoordinator[Reading]):
|
||||
"""The Discovergy update coordinator."""
|
||||
|
||||
config_entry: ConfigEntry
|
||||
discovergy_client: Discovergy
|
||||
meter: Meter
|
||||
|
||||
def __init__(
|
||||
self,
|
||||
hass: HomeAssistant,
|
||||
config_entry: ConfigEntry,
|
||||
meter: Meter,
|
||||
discovergy_client: Discovergy,
|
||||
) -> None:
|
||||
"""Initialize the Discovergy coordinator."""
|
||||
self.config_entry = config_entry
|
||||
self.meter = meter
|
||||
self.discovergy_client = discovergy_client
|
||||
|
||||
|
|
Loading…
Reference in New Issue