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

Public Member Functions

def __init__ (self, code, msg)
 
def to_response (self)
 

Public Attributes

 code
 

Detailed Description

Google Assistant Smart Home errors.

https://developers.google.com/actions/smarthome/create-app#error_responses

Definition at line 6 of file error.py.

Constructor & Destructor Documentation

◆ __init__()

def homeassistant.components.google_assistant.error.SmartHomeError.__init__ (   self,
  code,
  msg 
)
Log error code.

Definition at line 12 of file error.py.

Member Function Documentation

◆ to_response()

def homeassistant.components.google_assistant.error.SmartHomeError.to_response (   self)
Convert to a response format.

Reimplemented in homeassistant.components.google_assistant.error.ChallengeNeeded.

Definition at line 17 of file error.py.

Member Data Documentation

◆ code

homeassistant.components.google_assistant.error.SmartHomeError.code

Definition at line 15 of file error.py.


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