Add remote alias to connection info response (#99410)

This commit is contained in:
Joakim Sørensen 2023-08-31 16:43:32 +02:00 committed by GitHub
parent 875809a827
commit 7042a02d72
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 1 deletions

View file

@ -221,6 +221,7 @@ class CloudClient(Interface):
"connected": self.cloud.remote.is_connected,
"enabled": self._prefs.remote_enabled,
"instance_domain": self.cloud.remote.instance_domain,
"alias": self.cloud.remote.alias,
},
"version": HA_VERSION,
}

View file

@ -365,6 +365,11 @@ async def test_cloud_connection_info(hass: HomeAssistant) -> None:
response = await cloud.client.async_cloud_connection_info({})
assert response == {
"remote": {"connected": False, "enabled": False, "instance_domain": None},
"remote": {
"connected": False,
"enabled": False,
"instance_domain": None,
"alias": None,
},
"version": HA_VERSION,
}