Home Assistant Unofficial Reference 2024.12.1
homeassistant.helpers.intent.NoStatesMatchedError Class Reference
Inheritance diagram for homeassistant.helpers.intent.NoStatesMatchedError:
[legend]
Collaboration diagram for homeassistant.helpers.intent.NoStatesMatchedError:
[legend]

Public Member Functions

None __init__ (self, MatchFailedReason reason, str|None name=None, str|None area=None, str|None floor=None, set[str]|None domains=None, set[str]|None device_classes=None)
 
- Public Member Functions inherited from homeassistant.helpers.intent.MatchFailedError
None __init__ (self, MatchTargetsResult result, MatchTargetsConstraints constraints, MatchTargetsPreferences|None preferences=None)
 
str __str__ (self)
 
- Public Member Functions inherited from homeassistant.exceptions.HomeAssistantError
None __init__ (self, *object args, str|None translation_domain=None, str|None translation_key=None, dict[str, str]|None translation_placeholders=None)
 

Additional Inherited Members

- Public Attributes inherited from homeassistant.helpers.intent.MatchFailedError
 constraints
 
 preferences
 
 result
 
- Public Attributes inherited from homeassistant.exceptions.HomeAssistantError
 generate_message
 
 translation_domain
 
 translation_key
 
 translation_placeholders
 
- Static Public Attributes inherited from homeassistant.exceptions.HomeAssistantError
 bool
 
 None
 

Detailed Description

Error when no states match the intent's constraints.

Definition at line 326 of file intent.py.

Constructor & Destructor Documentation

◆ __init__()

None homeassistant.helpers.intent.NoStatesMatchedError.__init__ (   self,
MatchFailedReason  reason,
str | None   name = None,
str | None   area = None,
str | None   floor = None,
set[str] | None   domains = None,
set[str] | None   device_classes = None 
)
Initialize error.

Definition at line 329 of file intent.py.


The documentation for this class was generated from the following file: