Skip to content

Commit

Permalink
Add name to cloud connection info response (#133468)
Browse files Browse the repository at this point in the history
  • Loading branch information
ludeeus authored Dec 18, 2024
1 parent 90208d2 commit 869a0d7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions homeassistant/components/cloud/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -306,6 +306,7 @@ async def async_cloud_connection_info(
},
"version": HA_VERSION,
"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]:
Expand Down
1 change: 1 addition & 0 deletions tests/components/cloud/test_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -441,6 +441,7 @@ async def test_cloud_connection_info(hass: HomeAssistant) -> None:

assert response == {
"instance_id": "12345678901234567890",
"name": "test home",
"remote": {
"alias": None,
"can_enable": True,
Expand Down

0 comments on commit 869a0d7

Please sign in to comment.