Fix translations in ollama (#130164)
This commit is contained in:
parent
e4036a2f14
commit
1ac9217630
2 changed files with 3 additions and 5 deletions
|
@ -11,9 +11,11 @@
|
||||||
"title": "Downloading model"
|
"title": "Downloading model"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"abort": {
|
||||||
|
"download_failed": "Model downloading failed"
|
||||||
|
},
|
||||||
"error": {
|
"error": {
|
||||||
"cannot_connect": "[%key:common::config_flow::error::cannot_connect%]",
|
"cannot_connect": "[%key:common::config_flow::error::cannot_connect%]",
|
||||||
"download_failed": "Model downloading failed",
|
|
||||||
"unknown": "[%key:common::config_flow::error::unknown%]"
|
"unknown": "[%key:common::config_flow::error::unknown%]"
|
||||||
},
|
},
|
||||||
"progress": {
|
"progress": {
|
||||||
|
|
|
@ -204,10 +204,6 @@ async def test_form_errors(hass: HomeAssistant, side_effect, error) -> None:
|
||||||
assert result2["errors"] == {"base": error}
|
assert result2["errors"] == {"base": error}
|
||||||
|
|
||||||
|
|
||||||
@pytest.mark.parametrize( # Remove when translations fixed
|
|
||||||
"ignore_translations",
|
|
||||||
["component.ollama.config.abort.download_failed"],
|
|
||||||
)
|
|
||||||
async def test_download_error(hass: HomeAssistant) -> None:
|
async def test_download_error(hass: HomeAssistant) -> None:
|
||||||
"""Test we handle errors while downloading a model."""
|
"""Test we handle errors while downloading a model."""
|
||||||
result = await hass.config_entries.flow.async_init(
|
result = await hass.config_entries.flow.async_init(
|
||||||
|
|
Loading…
Add table
Reference in a new issue