diff --git a/homeassistant/components/wallbox/manifest.json b/homeassistant/components/wallbox/manifest.json index a6e284ff22b2ab..ce9008ef8bbc51 100644 --- a/homeassistant/components/wallbox/manifest.json +++ b/homeassistant/components/wallbox/manifest.json @@ -6,5 +6,5 @@ "documentation": "https://www.home-assistant.io/integrations/wallbox", "iot_class": "cloud_polling", "loggers": ["wallbox"], - "requirements": ["wallbox==0.4.14"] + "requirements": ["wallbox==0.6.0"] } diff --git a/requirements_all.txt b/requirements_all.txt index c9a98185508b65..e091ae09ce51b1 100644 --- a/requirements_all.txt +++ b/requirements_all.txt @@ -2823,7 +2823,7 @@ vultr==0.1.2 wakeonlan==2.1.0 # homeassistant.components.wallbox -wallbox==0.4.14 +wallbox==0.6.0 # homeassistant.components.folder_watcher watchdog==2.3.1 diff --git a/requirements_test_all.txt b/requirements_test_all.txt index 14c2af6be1493e..a4da130fb2ccc8 100644 --- a/requirements_test_all.txt +++ b/requirements_test_all.txt @@ -2161,7 +2161,7 @@ vultr==0.1.2 wakeonlan==2.1.0 # homeassistant.components.wallbox -wallbox==0.4.14 +wallbox==0.6.0 # homeassistant.components.folder_watcher watchdog==2.3.1 diff --git a/tests/components/wallbox/__init__.py b/tests/components/wallbox/__init__.py index 40f55db8d50f16..f21e895b3a7f6d 100644 --- a/tests/components/wallbox/__init__.py +++ b/tests/components/wallbox/__init__.py @@ -25,7 +25,7 @@ ) from homeassistant.core import HomeAssistant -from .const import ERROR, STATUS, TTL, USER_ID +from .const import ERROR, REFRESH_TOKEN_TTL, STATUS, TTL, USER_ID from tests.common import MockConfigEntry @@ -72,8 +72,10 @@ "data": { "attributes": { "token": "fakekeyhere", + "refresh_token": "refresh_fakekeyhere", USER_ID: 12345, TTL: 145656758, + REFRESH_TOKEN_TTL: 145756758, ERROR: "false", STATUS: 200, } @@ -85,8 +87,10 @@ "data": { "attributes": { "token": "fakekeyhere", + "refresh_token": "refresh_fakekeyhere", USER_ID: 12345, TTL: 145656758, + REFRESH_TOKEN_TTL: 145756758, ERROR: "false", STATUS: 404, } diff --git a/tests/components/wallbox/const.py b/tests/components/wallbox/const.py index 4480b1ea7a47b0..00ede14771b284 100644 --- a/tests/components/wallbox/const.py +++ b/tests/components/wallbox/const.py @@ -2,6 +2,7 @@ JWT = "jwt" USER_ID = "user_id" TTL = "ttl" +REFRESH_TOKEN_TTL = "refresh_token_ttl" ERROR = "error" STATUS = "status" diff --git a/tests/components/wallbox/test_config_flow.py b/tests/components/wallbox/test_config_flow.py index bf0ab95e522632..20ad693c696a8c 100644 --- a/tests/components/wallbox/test_config_flow.py +++ b/tests/components/wallbox/test_config_flow.py @@ -188,7 +188,7 @@ async def test_form_reauth_invalid(hass: HomeAssistant, entry: MockConfigEntry) with requests_mock.Mocker() as mock_request: mock_request.get( "https://user-api.wall-box.com/users/signin", - text='{"jwt":"fakekeyhere","user_id":12345,"ttl":145656758,"error":false,"status":200}', + text='{"jwt":"fakekeyhere","refresh_token": "refresh_fakekeyhere","user_id":12345,"ttl":145656758,"refresh_token_ttl":145756758,"error":false,"status":200}', status_code=200, ) mock_request.get(