You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When calling (deprecated) service update_health_status, which fails, I see following error in logs. I think we are using wrong variable, we should use service_status instead of status.
2024-02-03 20:05:31.237 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection] [140181863512384] string indices must be integers, not 'str'
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/websocket_api/commands.py", line 238, in handle_call_service
response = await hass.services.async_call(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/core.py", line 2149, in async_call
response_data = await coro
^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/core.py", line 2186, in _execute_service
return await target(service_call)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/jlrincontrol/coordinator.py", line 597, in async_call_service
success = await jlr_service.async_call_service(**kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/jlrincontrol/services.py", line 140, in async_call_service
success = await self.async_monitor_service_call(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/jlrincontrol/services.py", line 194, in async_monitor_service_call
status["vehicleId"] = field_mask(status["vehicleId"], 3, 2)
~~~~~~^^^^^^^^^^^^^
TypeError: string indices must be integers, not 'str'
The text was updated successfully, but these errors were encountered:
When calling (deprecated) service
update_health_status
, which fails, I see following error in logs. I think we are using wrong variable, we should useservice_status
instead ofstatus
.The text was updated successfully, but these errors were encountered: