hass-core/homeassistant/components/shell_command/strings.json
Michael 50d83bbdbf
Fix error handling in Shell Command integration (#116409)
* raise proper HomeAssistantError on command timeout

* raise proper HomeAssistantError on non-utf8 command output

* add error translation and test it

* Update homeassistant/components/shell_command/strings.json

* Update tests/components/shell_command/test_init.py

---------

Co-authored-by: G Johansson <goran.johansson@shiftit.se>
2024-04-29 20:19:14 +02:00

10 lines
241 B
JSON

{
"exceptions": {
"timeout": {
"message": "Timed out running command: `{command}`, after: {timeout} seconds"
},
"non_utf8_output": {
"message": "Unable to handle non-utf8 output of command: `{command}`"
}
}
}