Bump hass-nabucasa from 2.2.0 to 2.3.0 (#179662)

This commit is contained in:
Joakim Sørensen
2026-08-20 16:46:52 +02:00
committed by GitHub
parent 1d9bb18457
commit b1e8662f43
7 changed files with 28 additions and 6 deletions
@@ -79,6 +79,10 @@ _CLOUD_ERRORS: dict[
HTTPStatus.BAD_GATEWAY,
"Unable to reach the Home Assistant Cloud.",
),
auth.AuthTimeoutError: (
HTTPStatus.GATEWAY_TIMEOUT,
"Authentication timed out.",
),
aiohttp.ClientError: (
HTTPStatus.INTERNAL_SERVER_ERROR,
"Error making internal request",
+1 -1
View File
@@ -13,6 +13,6 @@
"integration_type": "system",
"iot_class": "cloud_push",
"loggers": ["acme", "hass_nabucasa", "snitun"],
"requirements": ["hass-nabucasa==2.2.0", "openai==2.45.0"],
"requirements": ["hass-nabucasa==2.3.0", "openai==2.45.0"],
"single_config_entry": true
}
+1 -1
View File
@@ -36,7 +36,7 @@ fnv-hash-fast==2.0.3
go2rtc-client==0.4.0
ha-ffmpeg==3.2.2
habluetooth==6.26.7
hass-nabucasa==2.2.0
hass-nabucasa==2.3.0
hassil==3.11.0
home-assistant-bluetooth==2.0.0
home-assistant-frontend==20260729.7
+1 -1
View File
@@ -47,7 +47,7 @@ dependencies = [
"fnv-hash-fast==2.0.3",
# hass-nabucasa is imported by helpers which don't depend on the cloud
# integration
"hass-nabucasa==2.2.0",
"hass-nabucasa==2.3.0",
# When bumping httpx, please check the version pins of
# httpcore, anyio, and h11 in gen_requirements_all
"httpx==0.28.1",
+1 -1
View File
@@ -24,7 +24,7 @@ cronsim==2.7
cryptography==48.0.1
fnv-hash-fast==2.0.3
ha-ffmpeg==3.2.2
hass-nabucasa==2.2.0
hass-nabucasa==2.3.0
hassil==3.11.0
home-assistant-bluetooth==2.0.0
home-assistant-intents==2026.7.30
+1 -1
View File
@@ -1237,7 +1237,7 @@ hanna-cloud==0.0.7
harbor-python==1.5.0
# homeassistant.components.cloud
hass-nabucasa==2.2.0
hass-nabucasa==2.3.0
# homeassistant.components.splunk
hass-splunk==0.1.4
+19 -1
View File
@@ -10,7 +10,7 @@ from unittest.mock import AsyncMock, MagicMock, Mock, PropertyMock, patch
import aiohttp
from freezegun.api import FrozenDateTimeFactory
from hass_nabucasa import AlreadyConnectedError
from hass_nabucasa import AlreadyConnectedError, AuthTimeoutError
from hass_nabucasa.auth import (
InvalidTotpCode,
MFARequired,
@@ -388,6 +388,24 @@ async def test_login_view_request_timeout(
assert req.status == HTTPStatus.BAD_GATEWAY
async def test_login_view_request_auth_timeout(
cloud: MagicMock,
setup_cloud: None,
hass_client: ClientSessionGenerator,
) -> None:
"""Test authentication timeout while trying to log in."""
cloud_client = await hass_client()
cloud.login.side_effect = AuthTimeoutError
req = await cloud_client.post(
"/api/cloud/login", json={"email": "my_username", "password": "my_password"}
)
assert cloud.login.call_args[1]["check_connection"] is False
assert req.status == HTTPStatus.GATEWAY_TIMEOUT
async def test_login_view_with_already_existing_connection(
cloud: MagicMock,
setup_cloud: None,