From ce6fced6a4eb4f8d131645472c03902809b25211 Mon Sep 17 00:00:00 2001 From: epenet <6771947+epenet@users.noreply.github.com> Date: Fri, 6 Feb 2026 11:41:58 +0100 Subject: [PATCH] Use StrEnum in intent helper (#162391) --- homeassistant/helpers/intent.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/homeassistant/helpers/intent.py b/homeassistant/helpers/intent.py index 011a81522b1..45bf82a76c4 100644 --- a/homeassistant/helpers/intent.py +++ b/homeassistant/helpers/intent.py @@ -1343,7 +1343,7 @@ class IntentResponseType( """Response is an error""" -class IntentResponseErrorCode(str, Enum): +class IntentResponseErrorCode(StrEnum): """Reason for an intent response error.""" NO_INTENT_MATCH = "no_intent_match" @@ -1359,7 +1359,7 @@ class IntentResponseErrorCode(str, Enum): """Error outside the scope of intent processing""" -class IntentResponseTargetType(str, Enum): +class IntentResponseTargetType(StrEnum): """Type of target for an intent response.""" AREA = "area"