* 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>
10 lines
241 B
JSON
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}`"
|
|
}
|
|
}
|
|
}
|