Home Assistant Unofficial Reference 2024.12.1
homeassistant.components.google_assistant.trait.ObjectDetection Class Reference
Inheritance diagram for homeassistant.components.google_assistant.trait.ObjectDetection:
[legend]
Collaboration diagram for homeassistant.components.google_assistant.trait.ObjectDetection:
[legend]

Public Member Functions

def execute (self, command, data, params, challenge)
 
dict[str, Any] query_attributes (self)
 
dict[str, Any]|None query_notifications (self)
 
dict[str, Any] sync_attributes (self)
 
dict[str, Any] sync_options (self)
 
- Public Member Functions inherited from homeassistant.components.google_assistant.trait._Trait
None __init__ (self, HomeAssistant hass, state, config)
 
def can_execute (self, command, params)
 

Static Public Member Functions

bool supported (domain, features, device_class, _)
 
- Static Public Member Functions inherited from homeassistant.components.google_assistant.trait._Trait
def might_2fa (domain, features, device_class)
 

Static Public Attributes

list commands = []
 
 name = TRAIT_OBJECT_DETECTION
 

Additional Inherited Members

- Public Attributes inherited from homeassistant.components.google_assistant.trait._Trait
 config
 
 hass
 
 state
 

Detailed Description

Trait to object detection.

https://developers.google.com/actions/smarthome/traits/objectdetection

Definition at line 408 of file trait.py.

Member Function Documentation

◆ execute()

def homeassistant.components.google_assistant.trait.ObjectDetection.execute (   self,
  command,
  data,
  params,
  challenge 
)
Execute an ObjectDetection command.

Reimplemented from homeassistant.components.google_assistant.trait._Trait.

Definition at line 461 of file trait.py.

◆ query_attributes()

dict[str, Any] homeassistant.components.google_assistant.trait.ObjectDetection.query_attributes (   self)
Return ObjectDetection query attributes.

Reimplemented from homeassistant.components.google_assistant.trait._Trait.

Definition at line 432 of file trait.py.

◆ query_notifications()

dict[str, Any] | None homeassistant.components.google_assistant.trait.ObjectDetection.query_notifications (   self)
Return notifications payload.

Reimplemented from homeassistant.components.google_assistant.trait._Trait.

Definition at line 436 of file trait.py.

◆ supported()

bool homeassistant.components.google_assistant.trait.ObjectDetection.supported (   domain,
  features,
  device_class,
  _ 
)
static
Test if state is supported.

Reimplemented from homeassistant.components.google_assistant.trait._Trait.

Definition at line 418 of file trait.py.

◆ sync_attributes()

dict[str, Any] homeassistant.components.google_assistant.trait.ObjectDetection.sync_attributes (   self)
Return ObjectDetection attributes for a sync request.

Reimplemented from homeassistant.components.google_assistant.trait._Trait.

Definition at line 424 of file trait.py.

◆ sync_options()

dict[str, Any] homeassistant.components.google_assistant.trait.ObjectDetection.sync_options (   self)
Add options for the sync request.

Reimplemented from homeassistant.components.google_assistant.trait._Trait.

Definition at line 428 of file trait.py.

Member Data Documentation

◆ commands

list homeassistant.components.google_assistant.trait.ObjectDetection.commands = []
static

Definition at line 415 of file trait.py.

◆ name

homeassistant.components.google_assistant.trait.ObjectDetection.name = TRAIT_OBJECT_DETECTION
static

Definition at line 414 of file trait.py.


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