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

v5.0.4 #696

Merged
merged 4 commits into from
Dec 14, 2024
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
2 changes: 1 addition & 1 deletion custom_components/volkswagencarnet/strings.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
},
"reauth_confirm": {
"data": {
"description": "Re-authenticate with your Volkswagen Connect account. Make sure to accept any new EULA in the Volkswagen Connect portal (https://www.myvolkswagen.net/) before proceeding. ",
"description": "Re-authenticate with your Volkswagen Connect account. Make sure to accept any new EULA in the Volkswagen Connect portal (https://www.myvolkswagen.net/) before proceeding.",
"email": "[%key:common::config_flow::data::email%]",
"password": "[%key:common::config_flow::data::password%]"
}
Expand Down
2 changes: 1 addition & 1 deletion custom_components/volkswagencarnet/translations/da.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
},
"reauth_confirm": {
"data": {
"description": "Log ind igen med din Volkswagen Connect konto. Vær sikker på at acceptere nye EULA i Volkswagen Connect portalen (https://www.myvolkswagen.net/) før du fortsætter. ",
"description": "Log ind igen med din Volkswagen Connect konto. Vær sikker på at acceptere nye EULA i Volkswagen Connect portalen (https://www.myvolkswagen.net/) før du fortsætter.",
"email": "Email",
"password": "Adgangskode"
}
Expand Down
2 changes: 1 addition & 1 deletion custom_components/volkswagencarnet/translations/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
},
"reauth_confirm": {
"data": {
"description": "Re-authenticate with your Volkswagen Connect account. Make sure to accept any new EULA in the Volkswagen Connect portal (https://www.myvolkswagen.net/) before proceeding. ",
"description": "Re-authenticate with your Volkswagen Connect account. Make sure to accept any new EULA in the Volkswagen Connect portal (https://www.myvolkswagen.net/) before proceeding.",
"email": "Email",
"password": "Password"
}
Expand Down
2 changes: 1 addition & 1 deletion custom_components/volkswagencarnet/translations/fi.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
},
"reauth_confirm": {
"data": {
"description": "Kirjausu uudelleen Volkswagen Connectiin. Varmista että olet hyväksynyt mahdolliset uudet Volkswagen Connect portaalin käyttöehdot (https://www.myvolkswagen.net/) ensin. ",
"description": "Kirjausu uudelleen Volkswagen Connectiin. Varmista että olet hyväksynyt mahdolliset uudet Volkswagen Connect portaalin käyttöehdot (https://www.myvolkswagen.net/) ensin.",
"username": "Sähköposti",
"password": "Salasana"
}
Expand Down
2 changes: 1 addition & 1 deletion custom_components/volkswagencarnet/translations/pt-BR.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
},
"reauth_confirm": {
"data": {
"description": "Re-autentique com sua conta Volkswagen Connect. Certifique-se de aceitar qualquer novo EULA no portal Volkswagen Connect (https://www.myvolkswagen.net/) antes de continuar. ",
"description": "Re-autentique com sua conta Volkswagen Connect. Certifique-se de aceitar qualquer novo EULA no portal Volkswagen Connect (https://www.myvolkswagen.net/) antes de continuar.",
"username": "Email",
"password": "Senha"
}
Expand Down
2 changes: 1 addition & 1 deletion custom_components/volkswagencarnet/translations/ru.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
},
"reauth_confirm": {
"data": {
"description": "Повторно войдите в свою учетную запись Volkswagen Connect. Перед продолжением обязательно примите новое лицензионное соглашение с конечным пользователем на портале Volkswagen Connect (https://www.myvolkswagen.net/). ",
"description": "Повторно войдите в свою учетную запись Volkswagen Connect. Перед продолжением обязательно примите новое лицензионное соглашение с конечным пользователем на портале Volkswagen Connect (https://www.myvolkswagen.net/).",
"email": "Email",
"password": "Password"
}
Expand Down
2 changes: 1 addition & 1 deletion custom_components/volkswagencarnet/translations/sl.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
},
"reauth_confirm": {
"data": {
"description": "Ponovno se prijavite v svoj Volkswagen Connect račun. Poskrbite, da sprejmete morebitno novo licenco EULA v portalu Volkswagen Connect (https://www.myvolkswagen.net/), preden nadaljujete. ",
"description": "Ponovno se prijavite v svoj Volkswagen Connect račun. Poskrbite, da sprejmete morebitno novo licenco EULA v portalu Volkswagen Connect (https://www.myvolkswagen.net/), preden nadaljujete.",
"email": "E-pošta",
"password": "Geslo"
}
Expand Down
15 changes: 9 additions & 6 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,15 @@ def auto_enable_custom_integrations(enable_custom_integrations):
@pytest.fixture
def bypass_setup_fixture():
"""Prevent setup."""
with patch(
"custom_components.volkswagencarnet.async_setup",
return_value=True,
), patch(
"custom_components.volkswagencarnet.async_setup_entry",
return_value=True,
with (
patch(
"custom_components.volkswagencarnet.async_setup",
return_value=True,
),
patch(
"custom_components.volkswagencarnet.async_setup_entry",
return_value=True,
),
):
yield

Expand Down
9 changes: 6 additions & 3 deletions tests/timer_services_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,9 +76,12 @@ async def test_call_service(conn: MagicMock, hass: HomeAssistant):
target_temp = 24.5
data = {"device_id": e.entry_id, "target_temperature": target_temp}

with patch(
"custom_components.volkswagencarnet.services.get_coordinator_by_device_id"
) as m, patch.object(c.connection, "getTimers") as get_timers:
with (
patch(
"custom_components.volkswagencarnet.services.get_coordinator_by_device_id"
) as m,
patch.object(c.connection, "getTimers") as get_timers,
):
m.return_value = c
timer_profiles = [
TimerProfile(
Expand Down
9 changes: 5 additions & 4 deletions tests/util_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,11 @@ async def test_get_coordinator(hass: HomeAssistant):
}

# We want to skip the actual setup flow here
with patch.object(
homeassistant.config_entries.ConfigEntries, "async_setup"
) as flow, patch.object(
homeassistant.config_entries.ConfigEntries, "_async_schedule_save"
with (
patch.object(homeassistant.config_entries.ConfigEntries, "async_setup") as flow,
patch.object(
homeassistant.config_entries.ConfigEntries, "_async_schedule_save"
),
):
f: Future = Future()
f.set_result(True)
Expand Down
Loading