Public Member Functions | |
| def | execute (self, command, data, params, challenge) |
| dict[str, Any] | query_attributes (self) |
| 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) |
| dict[str, Any]|None | query_notifications (self) |
| dict[str, Any] | sync_options (self) |
Static Public Member Functions | |
| def | might_2fa (domain, features, device_class) |
| def | supported (domain, features, device_class, _) |
Static Public Attributes | |
| list | commands = [COMMAND_LOCK_UNLOCK] |
| name = TRAIT_LOCK_UNLOCK | |
Additional Inherited Members | |
Public Attributes inherited from homeassistant.components.google_assistant.trait._Trait | |
| config | |
| hass | |
| state | |
Trait to lock or unlock a lock. https://developers.google.com/actions/smarthome/traits/lockunlock
| def homeassistant.components.google_assistant.trait.LockUnlockTrait.execute | ( | self, | |
| command, | |||
| data, | |||
| params, | |||
| challenge | |||
| ) |
Execute an LockUnlock command.
Reimplemented from homeassistant.components.google_assistant.trait._Trait.
|
static |
Return if the trait might ask for 2FA.
Reimplemented from homeassistant.components.google_assistant.trait._Trait.
| dict[str, Any] homeassistant.components.google_assistant.trait.LockUnlockTrait.query_attributes | ( | self | ) |
Return LockUnlock query attributes.
Reimplemented from homeassistant.components.google_assistant.trait._Trait.
|
static |
Test if state is supported.
Reimplemented from homeassistant.components.google_assistant.trait._Trait.
| dict[str, Any] homeassistant.components.google_assistant.trait.LockUnlockTrait.sync_attributes | ( | self | ) |
Return LockUnlock attributes for a sync request.
Reimplemented from homeassistant.components.google_assistant.trait._Trait.
|
static |
|
static |