Add name to cloud connection info response (#133468)

This commit is contained in:
Joakim Sørensen 2024-12-18 11:01:38 +01:00 committed by GitHub
parent 90208d2eb1
commit 869a0d7abc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 0 deletions

View File

@ -306,6 +306,7 @@ class CloudClient(Interface):
}, },
"version": HA_VERSION, "version": HA_VERSION,
"instance_id": self.prefs.instance_id, "instance_id": self.prefs.instance_id,
"name": self._hass.config.location_name,
} }
async def async_alexa_message(self, payload: dict[Any, Any]) -> dict[Any, Any]: async def async_alexa_message(self, payload: dict[Any, Any]) -> dict[Any, Any]:

View File

@ -441,6 +441,7 @@ async def test_cloud_connection_info(hass: HomeAssistant) -> None:
assert response == { assert response == {
"instance_id": "12345678901234567890", "instance_id": "12345678901234567890",
"name": "test home",
"remote": { "remote": {
"alias": None, "alias": None,
"can_enable": True, "can_enable": True,