Skip to content

Commit

Permalink
Change name to entity_id Number platform error messages (#87961)
Browse files Browse the repository at this point in the history
  • Loading branch information
gjohansson-ST authored Feb 12, 2023
1 parent 6ca4c5c commit 824a047
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion homeassistant/components/number/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 824a047

Please sign in to comment.