Skip to content

Commit

Permalink
Update audi_account.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Kolbi authored Mar 11, 2024
1 parent d420747 commit 862debd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions custom_components/audiconnect/audi_account.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ def init_connection(self):
session=session,
username=self.config_entry.data.get(CONF_USERNAME),
password=self.config_entry.data.get(CONF_PASSWORD),
country=self.config_entry.data.get(CONF_REGION),
country=self.config_entry.data.get(CONF_REGION),(
spin=self.config_entry.data.get(CONF_SPIN),
)

Expand Down Expand Up @@ -170,7 +170,7 @@ async def update(self, now):

async def execute_vehicle_action(self, service):
device_id = service.data.get(CONF_VIN).lower()
device = dr.async_get(hass).async_get(device_id)
device = dr.async_get(self.hass).async_get(device_id)
vin = dict(device.identifiers).get(DOMAIN)
action = service.data.get(CONF_ACTION).lower()

Expand Down Expand Up @@ -202,7 +202,7 @@ async def handle_notification(self, vin: str, action: str) -> None:

async def refresh_vehicle_data(self, service):
device_id = service.data.get(CONF_VIN).lower()
device = dr.async_get(hass).async_get(device_id)
device = dr.async_get(self.hass).async_get(device_id)
vin = dict(device.identifiers).get(DOMAIN)
await self._refresh_vehicle_data(vin)

Expand Down

0 comments on commit 862debd

Please sign in to comment.