1
0
mirror of https://github.com/home-assistant/core.git synced 2026-02-15 07:36:16 +00:00

Use StrEnum in intent helper (#162391)

This commit is contained in:
epenet
2026-02-06 11:41:58 +01:00
committed by GitHub
parent fc56f52c74
commit ce6fced6a4

View File

@@ -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"