diff --git a/homeassistant/components/google_assistant/smart_home.py b/homeassistant/components/google_assistant/smart_home.py index 430169ea97d..31fd02544ff 100644 --- a/homeassistant/components/google_assistant/smart_home.py +++ b/homeassistant/components/google_assistant/smart_home.py @@ -294,6 +294,15 @@ async def async_devices_reachable(hass, data: RequestData, payload): } +@HANDLERS.register("action.devices.PROXY_SELECTED") +async def async_devices_proxy_selected(hass, data: RequestData, payload): + """Handle action.devices.PROXY_SELECTED request. + + When selected for local SDK. + """ + return {} + + def turned_off_response(message): """Return a device turned off response.""" return { diff --git a/tests/components/google_assistant/test_smart_home.py b/tests/components/google_assistant/test_smart_home.py index 5ec43b37550..3398fdca926 100644 --- a/tests/components/google_assistant/test_smart_home.py +++ b/tests/components/google_assistant/test_smart_home.py @@ -1514,3 +1514,34 @@ async def test_query_recover(hass, caplog): } }, } + + +async def test_proxy_selected(hass, caplog): + """Test that we handle proxy selected.""" + + result = await sh.async_handle_message( + hass, + BASIC_CONFIG, + "test-agent", + { + "requestId": REQ_ID, + "inputs": [ + { + "intent": "action.devices.PROXY_SELECTED", + "payload": { + "device": { + "id": "abcdefg", + "customData": {}, + }, + "structureData": {}, + }, + } + ], + }, + const.SOURCE_LOCAL, + ) + + assert result == { + "requestId": REQ_ID, + "payload": {}, + }