Skip to content

Commit

Permalink
Fix complaints from linter
Browse files Browse the repository at this point in the history
  • Loading branch information
WebSpider committed Jan 4, 2025
1 parent 858ab68 commit d114de9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions custom_components/myskoda/coordinator.py
Original file line number Diff line number Diff line change
Expand Up @@ -157,14 +157,14 @@ async def _async_update_data(self) -> State:
config = self.data.config if self.data and self.data.config else Config()
operations = self.operations

if self.config.state == ConfigEntryState.SETUP_IN_PROGRESS:
if self.entry.state == ConfigEntryState.SETUP_IN_PROGRESS:
_LOGGER.debug("Performing initial data fetch for vin %s", self.vin)
try:
user = await self.myskoda.get_user()
vehicle = await self._async_get_minimal_data()
except ClientResponseError as err:
handle_aiohttp_error(
"setup user and vehicle", err, self.hass, self.config
"setup user and vehicle", err, self.hass, self.entry
)
raise UpdateFailed("Failed to retrieve initial data during setup")

Expand All @@ -186,7 +186,7 @@ def _async_finish_startup(hass, config, vin) -> None:

async_at_started(
hass=self.hass,
at_start_cb=_async_finish_startup(self.hass, self.config, self.vin), # pyright: ignore[reportArgumentType]
at_start_cb=_async_finish_startup(self.hass, self.entry, self.vin), # pyright: ignore[reportArgumentType]
) # Schedule post-setup tasks
return State(vehicle, user, config, operations)

Expand Down

0 comments on commit d114de9

Please sign in to comment.