Google local sdk: Set right port, correct device id and add base url (#34358)
This commit is contained in:
1 parent
42b6ec2fb5
commit
01599d44f5
4 files changed
+10
-3
No files matched your search
@@ -24,7 +24,8 @@ from tests.common import (
|
||||
async def test_google_entity_sync_serialize_with_local_sdk(hass):
|
||||
"""Test sync serialize attributes of a GoogleEntity."""
|
||||
hass.states.async_set("light.ceiling_lights", "off")
|
||||
hass.config.api = Mock(port=1234, use_ssl=True)
|
||||
hass.config.api = Mock(port=1234, use_ssl=True, base_url="https://hostname:1234")
|
||||
hass.http = Mock(server_port=1234)
|
||||
config = MockConfig(
|
||||
hass=hass,
|
||||
local_sdk_webhook_id="mock-webhook-id",
|
||||
@@ -45,6 +46,7 @@ async def test_google_entity_sync_serialize_with_local_sdk(hass):
|
||||
"httpSSL": True,
|
||||
"proxyDeviceId": None,
|
||||
"webhookId": "mock-webhook-id",
|
||||
"baseUrl": "https://hostname:1234",
|
||||
}
|
||||
|
||||
for device_type in NOT_EXPOSE_LOCAL:
|
||||
|
||||
Reference in new issue
Block a user