From 824a0475ae062c4ce4997059b641dc0a8cc6658f Mon Sep 17 00:00:00 2001 From: G Johansson Date: Sun, 12 Feb 2023 22:26:25 +0100 Subject: [PATCH] Change name to entity_id Number platform error messages (#87961) --- homeassistant/components/number/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/homeassistant/components/number/__init__.py b/homeassistant/components/number/__init__.py index e73014fc209..e090a21a23e 100644 --- a/homeassistant/components/number/__init__.py +++ b/homeassistant/components/number/__init__.py @@ -94,7 +94,7 @@ async def async_set_value(entity: NumberEntity, service_call: ServiceCall) -> No value = service_call.data["value"] if value < entity.min_value or value > entity.max_value: raise ValueError( - f"Value {value} for {entity.name} is outside valid range" + f"Value {value} for {entity.entity_id} is outside valid range" f" {entity.min_value} - {entity.max_value}" ) try: