Skip to content

Commit 0670f32

Browse files
committed
Use device ID in error text and parameter
1 parent 801883c commit 0670f32

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

homeassistant/components/enphase_envoy/services.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ async def inspect_action(call: ServiceCall) -> Any:
104104
translation_key="envoy_service_envoy_not_found",
105105
translation_placeholders={
106106
"service": call.service,
107-
"args": str(device_id),
107+
"device_id": str(device_id),
108108
},
109109
)
110110

homeassistant/components/enphase_envoy/strings.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -724,7 +724,7 @@
724724
"message": "Error communicating with Envoy API on {host}: {args}"
725725
},
726726
"envoy_service_envoy_not_found": {
727-
"message": "No Envoy found with specified device id: {service} {args}"
727+
"message": "No Envoy found with device ID {device_id} by {service}"
728728
},
729729
"not_initialized": {
730730
"message": "{service}: Enphase envoy is not yet initialized"

tests/components/enphase_envoy/test_services.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ async def test_service_inspect_device_id_error(
268268

269269
with pytest.raises(
270270
ServiceValidationError,
271-
match="No Envoy found with specified device id",
271+
match="No Envoy found with device ID",
272272
):
273273
await hass.services.async_call(
274274
DOMAIN,

0 commit comments

Comments
 (0)