|
| None | __init__ (self, HomeAssistant hass, ConfigEntry entry, token, smart_app, Iterable devices, Iterable scenes) |
| |
| def | any_assigned (self, str device_id, str platform) |
| |
| def | connect (self) |
| |
| def | disconnect (self) |
| |
| def | get_assigned (self, str device_id, str platform) |
| |
Manages an individual SmartThings config entry.
Definition at line 284 of file __init__.py.
◆ __init__()
| None homeassistant.components.smartthings.DeviceBroker.__init__ |
( |
|
self, |
|
|
HomeAssistant |
hass, |
|
|
ConfigEntry |
entry, |
|
|
|
token, |
|
|
|
smart_app, |
|
|
Iterable |
devices, |
|
|
Iterable |
scenes |
|
) |
| |
Create a new instance of the DeviceBroker.
Definition at line 287 of file __init__.py.
◆ _assign_capabilities()
| def homeassistant.components.smartthings.DeviceBroker._assign_capabilities |
( |
|
self, |
|
|
Iterable |
devices |
|
) |
| |
|
private |
Assign platforms to capabilities.
Definition at line 308 of file __init__.py.
◆ _event_handler()
| def homeassistant.components.smartthings.DeviceBroker._event_handler |
( |
|
self, |
|
|
|
req, |
|
|
|
resp, |
|
|
|
app |
|
) |
| |
|
private |
Broker for incoming events.
Definition at line 379 of file __init__.py.
◆ any_assigned()
| def homeassistant.components.smartthings.DeviceBroker.any_assigned |
( |
|
self, |
|
|
str |
device_id, |
|
|
str |
platform |
|
) |
| |
Return True if the platform has any assigned capabilities.
Definition at line 374 of file __init__.py.
◆ connect()
| def homeassistant.components.smartthings.DeviceBroker.connect |
( |
|
self | ) |
|
Connect handlers/listeners for device/lifecycle events.
Definition at line 332 of file __init__.py.
◆ disconnect()
| def homeassistant.components.smartthings.DeviceBroker.disconnect |
( |
|
self | ) |
|
Disconnects handlers/listeners for device/lifecycle events.
Definition at line 362 of file __init__.py.
◆ get_assigned()
| def homeassistant.components.smartthings.DeviceBroker.get_assigned |
( |
|
self, |
|
|
str |
device_id, |
|
|
str |
platform |
|
) |
| |
Get the capabilities assigned to the platform.
Definition at line 369 of file __init__.py.
◆ _assignments
| homeassistant.components.smartthings.DeviceBroker._assignments |
|
private |
◆ _entry
| homeassistant.components.smartthings.DeviceBroker._entry |
|
private |
◆ _event_disconnect
| homeassistant.components.smartthings.DeviceBroker._event_disconnect |
|
private |
◆ _hass
| homeassistant.components.smartthings.DeviceBroker._hass |
|
private |
◆ _installed_app_id
| homeassistant.components.smartthings.DeviceBroker._installed_app_id |
|
private |
◆ _regenerate_token_remove
| homeassistant.components.smartthings.DeviceBroker._regenerate_token_remove |
|
private |
◆ _smart_app
| homeassistant.components.smartthings.DeviceBroker._smart_app |
|
private |
◆ _token
| homeassistant.components.smartthings.DeviceBroker._token |
|
private |
◆ devices
| homeassistant.components.smartthings.DeviceBroker.devices |
◆ scenes
| homeassistant.components.smartthings.DeviceBroker.scenes |
The documentation for this class was generated from the following file: