Skip to content

Push2.device_options

Classes

class DeviceTriggerOption(EventObject)

Bases: EventObject

Attributes

  • default_label

__init__(self, name, default_label, callback, is_active, *a, **k)

name(self)

active(self)

_is_active(self)

_get_default_label(self)

_set_default_label(self, label)

class DeviceSwitchOption(DeviceTriggerOption)

Bases: DeviceTriggerOption

Attributes

  • _DeviceSwitchOption__on_value_changed

__init__(self, labels, parameter, *a, **k)

set_parameter(self, parameter)

_is_active(self)

active_index(self)

__on_value_changed(self)

labels(self)

cycle_index(self)

class DeviceOnOffOption(DeviceTriggerOption)

Bases: DeviceTriggerOption

Attributes

  • ON_LABEL = 'On'
  • OFF_LABEL = 'Off'

__init__(self, name, property_host, value_property_name, state_property_name, *a, **k)

set_property_host(self, property_host)

_property_value(self)

_is_active(self)

active_index(self)

cycle_index(self)

default_label(self)