Skip to content

Commit

Permalink
Merge pull request #25 from sliepie/feature/disable-pictures-update
Browse files Browse the repository at this point in the history
  • Loading branch information
mitch-dc committed Apr 26, 2022
2 parents 9210ea7 + 1f10f92 commit 2c4c31d
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
10 changes: 8 additions & 2 deletions custom_components/volkswagen_we_connect_id/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,15 +35,21 @@ async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry) -> bool:
username=entry.data["username"],
password=entry.data["password"],
updateAfterLogin=False,
updatePictures=False,
loginOnInit=False,
)

def we_connect_update() -> None:
_we_connect.update(
updatePictures=False
)

await hass.async_add_executor_job(_we_connect.login)
await hass.async_add_executor_job(_we_connect.update)
await hass.async_add_executor_job(we_connect_update)

async def async_update_data():
"""Fetch data from Volkswagen API."""
await hass.async_add_executor_job(_we_connect.update)
await hass.async_add_executor_job(we_connect_update)

vehicles = []

Expand Down
4 changes: 2 additions & 2 deletions custom_components/volkswagen_we_connect_id/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@
"name": "Volkswagen We Connect ID",
"config_flow": true,
"documentation": "https://github.com/mitch-dc/volkswagen_we_connect_id",
"requirements": ["weconnect==0.37.2", "ascii_magic==1.6"],
"requirements": ["weconnect==0.39", "ascii_magic==1.6"],
"ssdp": [],
"zeroconf": [],
"homekit": {},
"dependencies": [],
"codeowners": ["@mitch-dc"],
"iot_class": "cloud_polling",
"version": "0.3.1"
"version": "0.3.2"
}

0 comments on commit 2c4c31d

Please sign in to comment.