File tree 2 files changed +2
-9
lines changed
homeassistant/components/nina
2 files changed +2
-9
lines changed Original file line number Diff line number Diff line change 38
38
}
39
39
}
40
40
},
41
- "abort" : {
42
- "unknown" : " [%key:common::config_flow::error::unknown%]"
43
- },
44
41
"error" : {
45
42
"no_selection" : " [%key:component::nina::config::error::no_selection%]" ,
46
- "cannot_connect" : " [%key:common::config_flow::error::cannot_connect%]"
43
+ "cannot_connect" : " [%key:common::config_flow::error::cannot_connect%]" ,
44
+ "unknown" : " [%key:common::config_flow::error::unknown%]"
47
45
}
48
46
}
49
47
}
Original file line number Diff line number Diff line change 8
8
from unittest .mock import patch
9
9
10
10
from pynina import ApiError
11
- import pytest
12
11
13
12
from homeassistant .components .nina .const import (
14
13
CONF_AREA_FILTER ,
@@ -279,10 +278,6 @@ async def test_options_flow_connection_error(hass: HomeAssistant) -> None:
279
278
assert result ["errors" ] == {"base" : "cannot_connect" }
280
279
281
280
282
- @pytest .mark .parametrize ( # Remove when translations fixed
283
- "ignore_translations" ,
284
- ["component.nina.options.error.unknown" ],
285
- )
286
281
async def test_options_flow_unexpected_exception (hass : HomeAssistant ) -> None :
287
282
"""Test config flow options but with an unexpected exception."""
288
283
config_entry = MockConfigEntry (
You can’t perform that action at this time.
0 commit comments