I've been using this integration for quite a while now. It used to be that I could disable sound mode and be able to change settings silently from Home Assistant. However, as of the last time I tried to use the Select to change the sound mode, the following error pops up in the UI:
"Failed to perform the action select/select_option. Transport reported query error"
[140068264790112] Unexpected exception
Traceback (most recent call last):
File "/usr/local/lib/python3.14/site-packages/milasdk/api.py", line 74, in _execute
return await session.execute(document, variable_values)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.14/site-packages/gql/client.py", line 1640, in execute
raise TransportQueryError(
...<4 lines>...
)
gql.transport.exceptions.TransportQueryError: {'message': "Validation error (FieldUndefined@[applySoundsConfig]) : Field 'applySoundsConfig' in type 'Mutation' is undefined", 'locations': [{'line': 2, 'column': 3}], 'extensions': {'classification': 'ValidationError'}}
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/websocket_api/commands.py", line 279, in handle_call_service
response = await hass.services.async_call(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
...<7 lines>...
)
^
File "/usr/src/homeassistant/homeassistant/core.py", line 2817, in async_call
response_data = await coro
^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/core.py", line 2860, in _execute_service
return await target(service_call)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 835, in entity_service_call
single_response = await _handle_entity_call(
^^^^^^^^^^^^^^^^^^^^^^^^^^
hass, entity, func, data, call.context
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
)
^
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 907, in _handle_entity_call
result = await task
^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/select/__init__.py", line 188, in async_handle_select_option
await self.async_select_option(option)
File "/config/custom_components/mila/entities/appliance/sound_mode_select.py", line 50, in async_select_option
await self.device.set_sound_mode(INV_MODE_MAPPING[option])
File "/config/custom_components/mila/devices/appliance.py", line 60, in set_sound_mode
await self._api.set_sound_mode(self.id, mode)
File "/usr/local/lib/python3.14/site-packages/milasdk/api.py", line 224, in set_sound_mode
result = await self._execute(dsl_gql(mutation))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.14/site-packages/milasdk/api.py", line 90, in _execute
raise MilaError("Transport reported query error") from ex
milasdk.exceptions.MilaError: Transport reported query error
I'm not sure if this is something you're already aware of, or if there's an easy fix, but wanted to report it just in case. Thank you!
Hi!
I've been using this integration for quite a while now. It used to be that I could disable sound mode and be able to change settings silently from Home Assistant. However, as of the last time I tried to use the Select to change the sound mode, the following error pops up in the UI:
"Failed to perform the action select/select_option. Transport reported query error"
The following error shows up in the logs:
I'm not sure if this is something you're already aware of, or if there's an easy fix, but wanted to report it just in case. Thank you!