View to handle requests from myStrom buttons.
Definition at line 30 of file binary_sensor.py.
◆ __init__()
| def homeassistant.components.mystrom.binary_sensor.MyStromView.__init__ |
( |
|
self, |
|
|
|
add_entities |
|
) |
| |
◆ _handle()
| def homeassistant.components.mystrom.binary_sensor.MyStromView._handle |
( |
|
self, |
|
|
|
hass, |
|
|
|
data |
|
) |
| |
|
private |
◆ get()
| def homeassistant.components.mystrom.binary_sensor.MyStromView.get |
( |
|
self, |
|
|
|
request |
|
) |
| |
Handle the GET request received from a myStrom button.
Definition at line 42 of file binary_sensor.py.
◆ add_entities
| homeassistant.components.mystrom.binary_sensor.MyStromView.add_entities |
◆ buttons
| homeassistant.components.mystrom.binary_sensor.MyStromView.buttons |
◆ name
| string homeassistant.components.mystrom.binary_sensor.MyStromView.name = "api:mystrom" |
|
static |
◆ supported_actions
| list homeassistant.components.mystrom.binary_sensor.MyStromView.supported_actions = ["single", "double", "long", "touch"] |
|
static |
◆ url
| string homeassistant.components.mystrom.binary_sensor.MyStromView.url = "/api/mystrom" |
|
static |
The documentation for this class was generated from the following file: