From 9008556457575de11920c19a3a68bd37fb322334 Mon Sep 17 00:00:00 2001 From: G Johansson Date: Sun, 12 Feb 2023 22:54:04 +0100 Subject: [PATCH] Change name to entity_id Select platform error messages (#87962) --- homeassistant/components/select/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/homeassistant/components/select/__init__.py b/homeassistant/components/select/__init__.py index e3c5c9cfe69b82..af390a005a7b09 100644 --- a/homeassistant/components/select/__init__.py +++ b/homeassistant/components/select/__init__.py @@ -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)