Removed stale translation and improved `set_setting` translation at Home Connect (#129878)

pull/129897/head
J. Diego Rodríguez Royo 2024-11-05 15:17:03 +01:00 committed by GitHub
parent 69e3348cd7
commit 080e3d7a42
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 7 additions and 6 deletions

View File

@ -37,11 +37,8 @@
"set_light_color": {
"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": {
"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": {
"message": "Error while trying to turn on {entity_id} ({key}): {description}"

View File

@ -161,7 +161,9 @@ async def test_number_entity_error(
with pytest.raises(HomeConnectError):
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(
NUMBER_DOMAIN,
SERVICE_SET_VALUE,

View File

@ -135,7 +135,9 @@ async def test_time_entity_error(
with pytest.raises(HomeConnectError):
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(
TIME_DOMAIN,
SERVICE_SET_VALUE,