diff --git a/homeassistant/components/evohome/manifest.json b/homeassistant/components/evohome/manifest.json index 5c416921714..ead9c75bb15 100644 --- a/homeassistant/components/evohome/manifest.json +++ b/homeassistant/components/evohome/manifest.json @@ -4,7 +4,7 @@ "codeowners": ["@zxdavb"], "documentation": "https://www.home-assistant.io/integrations/evohome", "iot_class": "cloud_polling", - "loggers": ["evohome", "evohomeasync", "evohomeasync2"], + "loggers": ["evohomeasync", "evohomeasync2"], "quality_scale": "legacy", - "requirements": ["evohome-async==1.0.6"] + "requirements": ["evohome-async==1.1.3"] } diff --git a/requirements_all.txt b/requirements_all.txt index 40370512a01..20a65bf0942 100644 --- a/requirements_all.txt +++ b/requirements_all.txt @@ -938,7 +938,7 @@ eufylife-ble-client==0.1.8 # evdev==1.6.1 # homeassistant.components.evohome -evohome-async==1.0.6 +evohome-async==1.1.3 # homeassistant.components.bryant_evolution evolutionhttp==0.0.18 diff --git a/requirements_test_all.txt b/requirements_test_all.txt index b1f4ad1c83a..80747aac00c 100644 --- a/requirements_test_all.txt +++ b/requirements_test_all.txt @@ -826,7 +826,7 @@ eternalegypt==0.0.18 eufylife-ble-client==0.1.8 # homeassistant.components.evohome -evohome-async==1.0.6 +evohome-async==1.1.3 # homeassistant.components.bryant_evolution evolutionhttp==0.0.18 diff --git a/tests/components/evohome/conftest.py b/tests/components/evohome/conftest.py index 313982e3f97..ca960cefb22 100644 --- a/tests/components/evohome/conftest.py +++ b/tests/components/evohome/conftest.py @@ -168,7 +168,7 @@ async def setup_evohome( "evohomeasync2.auth.CredentialsManagerBase._post_request", mock_post_request(install), ), - patch("evohome.auth.AbstractAuth._make_request", mock_make_request(install)), + patch("_evohome.auth.AbstractAuth._make_request", mock_make_request(install)), ): evo: EvohomeClient | None = None diff --git a/tests/components/evohome/test_init.py b/tests/components/evohome/test_init.py index 53b9258523d..70672a4ea61 100644 --- a/tests/components/evohome/test_init.py +++ b/tests/components/evohome/test_init.py @@ -31,13 +31,9 @@ _MSG_USR = ( "special characters accepted via the vendor's website are not valid here." ) -LOG_HINT_429_CREDS = ("evohome.credentials", logging.ERROR, _MSG_429) -LOG_HINT_OTH_CREDS = ("evohome.credentials", logging.ERROR, _MSG_OTH) -LOG_HINT_USR_CREDS = ("evohome.credentials", logging.ERROR, _MSG_USR) - -LOG_HINT_429_AUTH = ("evohome.auth", logging.ERROR, _MSG_429) -LOG_HINT_OTH_AUTH = ("evohome.auth", logging.ERROR, _MSG_OTH) -LOG_HINT_USR_AUTH = ("evohome.auth", logging.ERROR, _MSG_USR) +LOG_HINT_429_AUTH = ("evohomeasync2.auth", logging.ERROR, _MSG_429) +LOG_HINT_OTH_AUTH = ("evohomeasync2.auth", logging.ERROR, _MSG_OTH) +LOG_HINT_USR_AUTH = ("evohomeasync2.auth", logging.ERROR, _MSG_USR) LOG_FAIL_CONNECTION = ( "homeassistant.components.evohome", @@ -110,10 +106,10 @@ EXC_BAD_GATEWAY = aiohttp.ClientResponseError( ) AUTHENTICATION_TESTS: dict[Exception, list] = { - EXC_BAD_CONNECTION: [LOG_HINT_OTH_CREDS, LOG_FAIL_CONNECTION, LOG_SETUP_FAILED], - EXC_BAD_CREDENTIALS: [LOG_HINT_USR_CREDS, LOG_FAIL_CREDENTIALS, LOG_SETUP_FAILED], - EXC_BAD_GATEWAY: [LOG_HINT_OTH_CREDS, LOG_FAIL_GATEWAY, LOG_SETUP_FAILED], - EXC_TOO_MANY_REQUESTS: [LOG_HINT_429_CREDS, LOG_FAIL_TOO_MANY, LOG_SETUP_FAILED], + EXC_BAD_CONNECTION: [LOG_HINT_OTH_AUTH, LOG_FAIL_CONNECTION, LOG_SETUP_FAILED], + EXC_BAD_CREDENTIALS: [LOG_HINT_USR_AUTH, LOG_FAIL_CREDENTIALS, LOG_SETUP_FAILED], + EXC_BAD_GATEWAY: [LOG_HINT_OTH_AUTH, LOG_FAIL_GATEWAY, LOG_SETUP_FAILED], + EXC_TOO_MANY_REQUESTS: [LOG_HINT_429_AUTH, LOG_FAIL_TOO_MANY, LOG_SETUP_FAILED], } CLIENT_REQUEST_TESTS: dict[Exception, list] = { @@ -137,7 +133,8 @@ async def test_authentication_failure_v2( with ( patch( - "evohome.credentials.CredentialsManagerBase._request", side_effect=exception + "_evohome.credentials.CredentialsManagerBase._request", + side_effect=exception, ), caplog.at_level(logging.WARNING), ): @@ -165,7 +162,7 @@ async def test_client_request_failure_v2( "evohomeasync2.auth.CredentialsManagerBase._post_request", mock_post_request("default"), ), - patch("evohome.auth.AbstractAuth._request", side_effect=exception), + patch("_evohome.auth.AbstractAuth._request", side_effect=exception), caplog.at_level(logging.WARNING), ): result = await async_setup_component(hass, DOMAIN, {DOMAIN: config})