Bump hass-nabucasa to 0.53.0 (#66826)

This commit is contained in:
Paulus Schoutsen 2022-02-18 11:53:02 -08:00 committed by GitHub
parent 90d6172fd0
commit d3bb622a3c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 14 additions and 4 deletions

View file

@ -1,5 +1,6 @@
"""The HTTP api to control the cloud integration.""" """The HTTP api to control the cloud integration."""
import asyncio import asyncio
import dataclasses
from functools import wraps from functools import wraps
from http import HTTPStatus from http import HTTPStatus
import logging import logging
@ -434,10 +435,18 @@ async def _account_data(hass: HomeAssistant, cloud: Cloud):
else: else:
certificate = None certificate = None
if cloud.iot.last_disconnect_reason:
cloud_last_disconnect_reason = dataclasses.asdict(
cloud.iot.last_disconnect_reason
)
else:
cloud_last_disconnect_reason = None
return { return {
"alexa_entities": client.alexa_user_config["filter"].config, "alexa_entities": client.alexa_user_config["filter"].config,
"alexa_registered": alexa_config.authorized, "alexa_registered": alexa_config.authorized,
"cloud": cloud.iot.state, "cloud": cloud.iot.state,
"cloud_last_disconnect_reason": cloud_last_disconnect_reason,
"email": claims["email"], "email": claims["email"],
"google_entities": client.google_user_config["filter"].config, "google_entities": client.google_user_config["filter"].config,
"google_registered": google_config.has_registered_user_agent, "google_registered": google_config.has_registered_user_agent,

View file

@ -2,7 +2,7 @@
"domain": "cloud", "domain": "cloud",
"name": "Home Assistant Cloud", "name": "Home Assistant Cloud",
"documentation": "https://www.home-assistant.io/integrations/cloud", "documentation": "https://www.home-assistant.io/integrations/cloud",
"requirements": ["hass-nabucasa==0.52.1"], "requirements": ["hass-nabucasa==0.53.0"],
"dependencies": ["http", "webhook"], "dependencies": ["http", "webhook"],
"after_dependencies": ["google_assistant", "alexa"], "after_dependencies": ["google_assistant", "alexa"],
"codeowners": ["@home-assistant/cloud"], "codeowners": ["@home-assistant/cloud"],

View file

@ -14,7 +14,7 @@ certifi>=2021.5.30
ciso8601==2.2.0 ciso8601==2.2.0
cryptography==35.0.0 cryptography==35.0.0
emoji==1.6.3 emoji==1.6.3
hass-nabucasa==0.52.1 hass-nabucasa==0.53.0
home-assistant-frontend==20220214.0 home-assistant-frontend==20220214.0
httpx==0.21.3 httpx==0.21.3
ifaddr==0.1.7 ifaddr==0.1.7

View file

@ -803,7 +803,7 @@ habitipy==0.2.0
hangups==0.4.17 hangups==0.4.17
# homeassistant.components.cloud # homeassistant.components.cloud
hass-nabucasa==0.52.1 hass-nabucasa==0.53.0
# homeassistant.components.splunk # homeassistant.components.splunk
hass_splunk==0.1.1 hass_splunk==0.1.1

View file

@ -528,7 +528,7 @@ habitipy==0.2.0
hangups==0.4.17 hangups==0.4.17
# homeassistant.components.cloud # homeassistant.components.cloud
hass-nabucasa==0.52.1 hass-nabucasa==0.53.0
# homeassistant.components.tasmota # homeassistant.components.tasmota
hatasmota==0.3.1 hatasmota==0.3.1

View file

@ -392,6 +392,7 @@ async def test_websocket_status(
"logged_in": True, "logged_in": True,
"email": "hello@home-assistant.io", "email": "hello@home-assistant.io",
"cloud": "connected", "cloud": "connected",
"cloud_last_disconnect_reason": None,
"prefs": { "prefs": {
"alexa_enabled": True, "alexa_enabled": True,
"cloudhooks": {}, "cloudhooks": {},