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
I have filled out the issue template to the best of my ability.
This issue only contains 1 issue (if you have multiple issues, open one issue for each issue).
This issue is not a duplicate issue of any previous issues..
Describe the issue
Inability to wake up the vehicle could be handled as a Warning, as it is generally a transient condition.
It is currently handled as a HomeAssistantError.
Reproduction steps
No response
Debug logs
Logger: homeassistant.components.websocket_api.http.connection
Source: components/websocket_api/commands.py:239
integration: Home Assistant WebSocket API (documentation, issues)
First occurred: 5:22:17 PM (1 occurrences)
Last logged: 5:22:17 PM
[281471908809152] Could not wake up vehicle
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/websocket_api/commands.py", line 239, in handle_call_service
response = await hass.services.async_call(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/core.py", line 2319, in async_call
response_data = await coro
^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/core.py", line 2356, in _execute_service
return await target(service_call)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 905, in entity_service_call
single_response = await _handle_entity_call(
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 975, in _handle_entity_call
result = await task
^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/number/__init__.py", line 111, in async_set_value
await entity.async_set_native_value(native_value)
File "/config/custom_components/teslemetry/number.py", line 190, in async_set_native_value
await self.wake_up_if_asleep()
File "/config/custom_components/teslemetry/entity.py", line 218, in wake_up_if_asleep
raise HomeAssistantError("Could not wake up vehicle")
homeassistant.exceptions.HomeAssistantError: Could not wake up vehicle
The text was updated successfully, but these errors were encountered:
I dont believe Home Assistant has a way to raise warnings, only logging them. However this is a service failure since the service call did not run, so I think error is appropriate.
Essentially if I raised a warning, Home Assistant would believe the service call was successful even when it isnt.
Checklist
Describe the issue
Inability to wake up the vehicle could be handled as a Warning, as it is generally a transient condition.
It is currently handled as a HomeAssistantError.
![image](https://private-user-images.githubusercontent.com/79175134/313161523-dc32b426-8630-4021-8ff0-a5dd0f7e1dea.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjE5MjQ4MDksIm5iZiI6MTcyMTkyNDUwOSwicGF0aCI6Ii83OTE3NTEzNC8zMTMxNjE1MjMtZGMzMmI0MjYtODYzMC00MDIxLThmZjAtYTVkZDBmN2UxZGVhLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA3MjUlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNzI1VDE2MjE0OVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWM1Nzk3OGQxZjZlMzE5YzY2ZmQzNGY5OGI3NzJkZDkwYTk0MWQzZGNmYTQxYTFmZjc4YmVhZDc0OWEzYjgyMGUmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.oNEa3MSD-Ej1DaEXVhLka2OkP641VD5dxpsMsGoF5wE)
Reproduction steps
No response
Debug logs
The text was updated successfully, but these errors were encountered: