Bump hass-nabucasa from 0.87.0 to 0.88.1 (#135521)

* Bump hass-nabucasa from 0.87.0 to 0.88.0

* Bump hass-nabucasa from 0.88.0 to 0.88.1

* Fix Alexa breaking changes
This commit is contained in:
Krisjanis Lejejs 2025-01-14 13:17:22 +02:00 committed by GitHub
parent 8db63adc11
commit 6e80ad505b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
11 changed files with 12 additions and 18 deletions

View File

@ -50,7 +50,6 @@ from .const import (
CONF_ACCOUNTS_SERVER,
CONF_ACME_SERVER,
CONF_ALEXA,
CONF_ALEXA_SERVER,
CONF_ALIASES,
CONF_CLOUDHOOK_SERVER,
CONF_COGNITO_CLIENT_ID,
@ -128,7 +127,6 @@ CONFIG_SCHEMA = vol.Schema(
vol.Optional(CONF_ACCOUNT_LINK_SERVER): str,
vol.Optional(CONF_ACCOUNTS_SERVER): str,
vol.Optional(CONF_ACME_SERVER): str,
vol.Optional(CONF_ALEXA_SERVER): str,
vol.Optional(CONF_CLOUDHOOK_SERVER): str,
vol.Optional(CONF_RELAYER_SERVER): str,
vol.Optional(CONF_REMOTESTATE_SERVER): str,

View File

@ -76,7 +76,6 @@ CONF_USER_POOL_ID = "user_pool_id"
CONF_ACCOUNT_LINK_SERVER = "account_link_server"
CONF_ACCOUNTS_SERVER = "accounts_server"
CONF_ACME_SERVER = "acme_server"
CONF_ALEXA_SERVER = "alexa_server"
CONF_CLOUDHOOK_SERVER = "cloudhook_server"
CONF_RELAYER_SERVER = "relayer_server"
CONF_REMOTESTATE_SERVER = "remotestate_server"

View File

@ -13,6 +13,6 @@
"integration_type": "system",
"iot_class": "cloud_push",
"loggers": ["hass_nabucasa"],
"requirements": ["hass-nabucasa==0.87.0"],
"requirements": ["hass-nabucasa==0.88.1"],
"single_config_entry": true
}

View File

@ -33,7 +33,7 @@ fnv-hash-fast==1.1.0
go2rtc-client==0.1.2
ha-ffmpeg==3.2.2
habluetooth==3.8.0
hass-nabucasa==0.87.0
hass-nabucasa==0.88.1
hassil==2.1.0
home-assistant-bluetooth==1.13.0
home-assistant-frontend==20250109.0

View File

@ -47,7 +47,7 @@ dependencies = [
"fnv-hash-fast==1.1.0",
# hass-nabucasa is imported by helpers which don't depend on the cloud
# integration
"hass-nabucasa==0.87.0",
"hass-nabucasa==0.88.1",
# When bumping httpx, please check the version pins of
# httpcore, anyio, and h11 in gen_requirements_all
"httpx==0.27.2",

2
requirements.txt generated
View File

@ -21,7 +21,7 @@ certifi>=2021.5.30
ciso8601==2.3.2
cronsim==2.6
fnv-hash-fast==1.1.0
hass-nabucasa==0.87.0
hass-nabucasa==0.88.1
httpx==0.27.2
home-assistant-bluetooth==1.13.0
ifaddr==0.2.0

2
requirements_all.txt generated
View File

@ -1100,7 +1100,7 @@ habiticalib==0.3.3
habluetooth==3.8.0
# homeassistant.components.cloud
hass-nabucasa==0.87.0
hass-nabucasa==0.88.1
# homeassistant.components.splunk
hass-splunk==0.1.1

View File

@ -941,7 +941,7 @@ habiticalib==0.3.3
habluetooth==3.8.0
# homeassistant.components.cloud
hass-nabucasa==0.87.0
hass-nabucasa==0.88.1
# homeassistant.components.conversation
hassil==2.1.0

View File

@ -179,7 +179,7 @@ async def test_alexa_config_invalidate_token(
assert await async_setup_component(hass, "homeassistant", {})
aioclient_mock.post(
"https://example/access_token",
"https://example/alexa/access_token",
json={
"access_token": "mock-token",
"event_endpoint": "http://example.com/alexa_endpoint",
@ -192,7 +192,7 @@ async def test_alexa_config_invalidate_token(
"mock-user-id",
cloud_prefs,
Mock(
alexa_server="example",
servicehandlers_server="example",
auth=Mock(async_check_token=AsyncMock()),
websession=async_get_clientsession(hass),
),
@ -239,7 +239,7 @@ async def test_alexa_config_fail_refresh_token(
)
aioclient_mock.post(
"https://example/access_token",
"https://example/alexa/access_token",
json={
"access_token": "mock-token",
"event_endpoint": "http://example.com/alexa_endpoint",
@ -256,7 +256,7 @@ async def test_alexa_config_fail_refresh_token(
"mock-user-id",
cloud_prefs,
Mock(
alexa_server="example",
servicehandlers_server="example",
auth=Mock(async_check_token=AsyncMock()),
websession=async_get_clientsession(hass),
),
@ -286,7 +286,7 @@ async def test_alexa_config_fail_refresh_token(
conf.async_invalidate_access_token()
aioclient_mock.clear_requests()
aioclient_mock.post(
"https://example/access_token",
"https://example/alexa/access_token",
json={"reason": reject_reason},
status=400,
)
@ -312,7 +312,7 @@ async def test_alexa_config_fail_refresh_token(
# State reporting should now be re-enabled for Alexa
aioclient_mock.clear_requests()
aioclient_mock.post(
"https://example/access_token",
"https://example/alexa/access_token",
json={
"access_token": "mock-token",
"event_endpoint": "http://example.com/alexa_endpoint",

View File

@ -112,7 +112,6 @@ async def setup_cloud_fixture(hass: HomeAssistant, cloud: MagicMock) -> None:
"cognito_client_id": "cognito_client_id",
"user_pool_id": "user_pool_id",
"region": "region",
"alexa_server": "alexa-api.nabucasa.com",
"relayer_server": "relayer",
"accounts_server": "api-test.hass.io",
"google_actions": {"filter": {"include_domains": "light"}},

View File

@ -45,7 +45,6 @@ async def test_constructor_loads_info_from_config(hass: HomeAssistant) -> None:
"relayer_server": "test-relayer-server",
"accounts_server": "test-acounts-server",
"cloudhook_server": "test-cloudhook-server",
"alexa_server": "test-alexa-server",
"acme_server": "test-acme-server",
"remotestate_server": "test-remotestate-server",
},
@ -62,7 +61,6 @@ async def test_constructor_loads_info_from_config(hass: HomeAssistant) -> None:
assert cl.iot.ws_server_url == "wss://test-relayer-server/websocket"
assert cl.accounts_server == "test-acounts-server"
assert cl.cloudhook_server == "test-cloudhook-server"
assert cl.alexa_server == "test-alexa-server"
assert cl.acme_server == "test-acme-server"
assert cl.remotestate_server == "test-remotestate-server"