Public Member Functions | |
| dict[str, Any] | query_attributes (self) |
| def | supported (cls, domain, features, device_class, _) |
| dict[str, Any] | sync_attributes (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) |
| def | execute (self, command, data, params, challenge) |
| dict[str, Any]|None | query_notifications (self) |
| dict[str, Any] | sync_options (self) |
Static Public Attributes | |
| dictionary | binary_sensor_types |
| name = TRAIT_SENSOR_STATE | |
| dictionary | sensor_types |
Private Member Functions | |
| str | _air_quality_description_for_aqi (self, float|None aqi) |
Additional Inherited Members | |
Static Public Member Functions inherited from homeassistant.components.google_assistant.trait._Trait | |
| def | might_2fa (domain, features, device_class) |
| def | supported (domain, features, device_class, attributes) |
Public Attributes inherited from homeassistant.components.google_assistant.trait._Trait | |
| config | |
| hass | |
| state | |
Trait to get sensor state. https://developers.google.com/actions/smarthome/traits/sensorstate
|
private |
| dict[str, Any] homeassistant.components.google_assistant.trait.SensorStateTrait.query_attributes | ( | self | ) |
Return the attributes of this trait for this entity.
Reimplemented from homeassistant.components.google_assistant.trait._Trait.
| def homeassistant.components.google_assistant.trait.SensorStateTrait.supported | ( | cls, | |
| domain, | |||
| features, | |||
| device_class, | |||
| _ | |||
| ) |
| dict[str, Any] homeassistant.components.google_assistant.trait.SensorStateTrait.sync_attributes | ( | self | ) |
Return attributes for a sync request.
Reimplemented from homeassistant.components.google_assistant.trait._Trait.
|
static |
|
static |
|
static |