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:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user