Skip to content

Commit

Permalink
Change name to entity_id Select platform error messages (#87962)
Browse files Browse the repository at this point in the history
  • Loading branch information
gjohansson-ST authored Feb 12, 2023
1 parent 824a047 commit 9008556
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion homeassistant/components/select/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ async def async_select_option(entity: SelectEntity, service_call: ServiceCall) -
"""Service call wrapper to set a new value."""
option = service_call.data[ATTR_OPTION]
if option not in entity.options:
raise ValueError(f"Option {option} not valid for {entity.name}")
raise ValueError(f"Option {option} not valid for {entity.entity_id}")
await entity.async_select_option(option)


Expand Down

0 comments on commit 9008556

Please sign in to comment.