Home Assistant Unofficial Reference 2024.12.1
homeassistant.components.cloud.google_config Namespace Reference

Classes

class  CloudGoogleConfig
 

Functions

bool _supported_legacy (HomeAssistant hass, str entity_id)
 

Variables

 _LOGGER = logging.getLogger(__name__)
 
string CLOUD_GOOGLE = f"{CLOUD_DOMAIN}.{GOOGLE_DOMAIN}"
 
dictionary SUPPORTED_BINARY_SENSOR_DEVICE_CLASSES
 
dictionary SUPPORTED_DOMAINS
 
dictionary SUPPORTED_SENSOR_DEVICE_CLASSES
 

Detailed Description

Google config for Cloud.

Function Documentation

◆ _supported_legacy()

bool homeassistant.components.cloud.google_config._supported_legacy ( HomeAssistant  hass,
str  entity_id 
)
private
Return if the entity is supported.

This is called when migrating from legacy config format to avoid exposing
all binary sensors and sensors.

Definition at line 102 of file google_config.py.

Variable Documentation

◆ _LOGGER

homeassistant.components.cloud.google_config._LOGGER = logging.getLogger(__name__)
private

Definition at line 53 of file google_config.py.

◆ CLOUD_GOOGLE

string homeassistant.components.cloud.google_config.CLOUD_GOOGLE = f"{CLOUD_DOMAIN}.{GOOGLE_DOMAIN}"

Definition at line 55 of file google_config.py.

◆ SUPPORTED_BINARY_SENSOR_DEVICE_CLASSES

dictionary homeassistant.components.cloud.google_config.SUPPORTED_BINARY_SENSOR_DEVICE_CLASSES
Initial value:
1 = {
2  BinarySensorDeviceClass.DOOR,
3  BinarySensorDeviceClass.GARAGE_DOOR,
4  BinarySensorDeviceClass.LOCK,
5  BinarySensorDeviceClass.MOTION,
6  BinarySensorDeviceClass.OPENING,
7  BinarySensorDeviceClass.PRESENCE,
8  BinarySensorDeviceClass.WINDOW,
9 }

Definition at line 80 of file google_config.py.

◆ SUPPORTED_DOMAINS

dictionary homeassistant.components.cloud.google_config.SUPPORTED_DOMAINS
Initial value:
1 = {
2  "alarm_control_panel",
3  "button",
4  "camera",
5  "climate",
6  "cover",
7  "fan",
8  "group",
9  "humidifier",
10  "input_boolean",
11  "input_button",
12  "input_select",
13  "light",
14  "lock",
15  "media_player",
16  "scene",
17  "script",
18  "select",
19  "switch",
20  "vacuum",
21 }

Definition at line 58 of file google_config.py.

◆ SUPPORTED_SENSOR_DEVICE_CLASSES

dictionary homeassistant.components.cloud.google_config.SUPPORTED_SENSOR_DEVICE_CLASSES
Initial value:
1 = {
2  SensorDeviceClass.AQI,
3  SensorDeviceClass.CO,
4  SensorDeviceClass.CO2,
5  SensorDeviceClass.HUMIDITY,
6  SensorDeviceClass.PM10,
7  SensorDeviceClass.PM25,
8  SensorDeviceClass.TEMPERATURE,
9  SensorDeviceClass.VOLATILE_ORGANIC_COMPOUNDS,
10 }

Definition at line 90 of file google_config.py.