mirror of
https://github.com/home-assistant/core.git
synced 2025-07-14 16:57:10 +00:00
Add missing translation string for NINA (#129826)
This commit is contained in:
parent
2cc5486794
commit
0de4bfcc2c
@ -38,12 +38,10 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"abort": {
|
|
||||||
"unknown": "[%key:common::config_flow::error::unknown%]"
|
|
||||||
},
|
|
||||||
"error": {
|
"error": {
|
||||||
"no_selection": "[%key:component::nina::config::error::no_selection%]",
|
"no_selection": "[%key:component::nina::config::error::no_selection%]",
|
||||||
"cannot_connect": "[%key:common::config_flow::error::cannot_connect%]"
|
"cannot_connect": "[%key:common::config_flow::error::cannot_connect%]",
|
||||||
|
"unknown": "[%key:common::config_flow::error::unknown%]"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -8,7 +8,6 @@ from typing import Any
|
|||||||
from unittest.mock import patch
|
from unittest.mock import patch
|
||||||
|
|
||||||
from pynina import ApiError
|
from pynina import ApiError
|
||||||
import pytest
|
|
||||||
|
|
||||||
from homeassistant.components.nina.const import (
|
from homeassistant.components.nina.const import (
|
||||||
CONF_AREA_FILTER,
|
CONF_AREA_FILTER,
|
||||||
@ -279,10 +278,6 @@ async def test_options_flow_connection_error(hass: HomeAssistant) -> None:
|
|||||||
assert result["errors"] == {"base": "cannot_connect"}
|
assert result["errors"] == {"base": "cannot_connect"}
|
||||||
|
|
||||||
|
|
||||||
@pytest.mark.parametrize( # Remove when translations fixed
|
|
||||||
"ignore_translations",
|
|
||||||
["component.nina.options.error.unknown"],
|
|
||||||
)
|
|
||||||
async def test_options_flow_unexpected_exception(hass: HomeAssistant) -> None:
|
async def test_options_flow_unexpected_exception(hass: HomeAssistant) -> None:
|
||||||
"""Test config flow options but with an unexpected exception."""
|
"""Test config flow options but with an unexpected exception."""
|
||||||
config_entry = MockConfigEntry(
|
config_entry = MockConfigEntry(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user