mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 05:07:41 +00:00
Removed stale translation and improved set_setting
translation at Home Connect (#129878)
This commit is contained in:
parent
69e3348cd7
commit
080e3d7a42
@ -37,11 +37,8 @@
|
|||||||
"set_light_color": {
|
"set_light_color": {
|
||||||
"message": "Error while trying to set color of {entity_id}: {description}"
|
"message": "Error while trying to set color of {entity_id}: {description}"
|
||||||
},
|
},
|
||||||
"set_light_effect": {
|
|
||||||
"message": "Error while trying to set effect of {entity_id}: {description}"
|
|
||||||
},
|
|
||||||
"set_setting": {
|
"set_setting": {
|
||||||
"message": "Error while trying to set \"{value}\" to \"{key}\" setting for {entity_id}: {description}"
|
"message": "Error while trying to assign the value \"{value}\" to the setting \"{key}\" for {entity_id}: {description}"
|
||||||
},
|
},
|
||||||
"turn_on": {
|
"turn_on": {
|
||||||
"message": "Error while trying to turn on {entity_id} ({key}): {description}"
|
"message": "Error while trying to turn on {entity_id} ({key}): {description}"
|
||||||
|
@ -161,7 +161,9 @@ async def test_number_entity_error(
|
|||||||
with pytest.raises(HomeConnectError):
|
with pytest.raises(HomeConnectError):
|
||||||
getattr(problematic_appliance, mock_attr)()
|
getattr(problematic_appliance, mock_attr)()
|
||||||
|
|
||||||
with pytest.raises(ServiceValidationError, match=r"Error.*set.*setting.*"):
|
with pytest.raises(
|
||||||
|
ServiceValidationError, match=r"Error.*assign.*value.*to.*setting.*"
|
||||||
|
):
|
||||||
await hass.services.async_call(
|
await hass.services.async_call(
|
||||||
NUMBER_DOMAIN,
|
NUMBER_DOMAIN,
|
||||||
SERVICE_SET_VALUE,
|
SERVICE_SET_VALUE,
|
||||||
|
@ -135,7 +135,9 @@ async def test_time_entity_error(
|
|||||||
with pytest.raises(HomeConnectError):
|
with pytest.raises(HomeConnectError):
|
||||||
getattr(problematic_appliance, mock_attr)()
|
getattr(problematic_appliance, mock_attr)()
|
||||||
|
|
||||||
with pytest.raises(ServiceValidationError, match=r"Error.*set.*setting.*"):
|
with pytest.raises(
|
||||||
|
ServiceValidationError, match=r"Error.*assign.*value.*to.*setting.*"
|
||||||
|
):
|
||||||
await hass.services.async_call(
|
await hass.services.async_call(
|
||||||
TIME_DOMAIN,
|
TIME_DOMAIN,
|
||||||
SERVICE_SET_VALUE,
|
SERVICE_SET_VALUE,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user