Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disable updating of pictures and bump weconnect #25

Merged
merged 1 commit into from
Apr 26, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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"
}