another bug-fix...
This commit is contained in:
parent
439ddbedf2
commit
931f1c9809
@ -15,6 +15,7 @@ except ImportError:
|
||||
ROOT_LOGGER_NAME = 'root'
|
||||
logger = logging.getLogger(ROOT_LOGGER_NAME).getChild(__name__)
|
||||
|
||||
# TODO: usage of implementation strategy from gfw_dirk for ffe_sleep_madi
|
||||
# TODO: implement garland (incl. day events like sunset, sunrise, ...)
|
||||
# TODO: implement warning message
|
||||
|
||||
|
@ -178,7 +178,7 @@ class ground_floor_west_dirk(room_shelly_tradfri_light):
|
||||
if device == self.button_tradfri:
|
||||
logger.info("Toggeling \"%s\" desk light to %s", type(self).__name__,
|
||||
not self.powerplug_common.get(self.KEY_POWERPLUG_DESK_LIGHT))
|
||||
self.powerplug_common.set_output(self.KEY_POWERPLUG_AMPLIFIER, "toggle")
|
||||
self.powerplug_common.set_output(self.KEY_POWERPLUG_DESK_LIGHT, "toggle")
|
||||
else:
|
||||
logger.info("Setting \"%s\" desk light: %s", type(self).__name__, data)
|
||||
self.powerplug_common.set_output(self.KEY_POWERPLUG_DESK_LIGHT, data)
|
||||
@ -252,7 +252,7 @@ class ground_floor_west_dirk(room_shelly_tradfri_light):
|
||||
elif state == self.STATE_ACTIVE_DEVICE_AMPLIFIER:
|
||||
return self.powerplug_common.get(self.KEY_POWERPLUG_AMPLIFIER)
|
||||
|
||||
def choose_next_device(self, device=None, key=None, data=None):
|
||||
def choose_prev_device(self, device=None, key=None, data=None):
|
||||
if self.active_device_state is not None:
|
||||
start_value = self.active_device_state
|
||||
for i in range(0, self.STATE_ACTIVE_DEVICE_MAX_VALUE + 1):
|
||||
@ -264,7 +264,7 @@ class ground_floor_west_dirk(room_shelly_tradfri_light):
|
||||
return
|
||||
self.active_device_state = None
|
||||
|
||||
def choose_prev_device(self, device=None, key=None, data=None):
|
||||
def choose_next_device(self, device=None, key=None, data=None):
|
||||
if self.active_device_state is not None:
|
||||
start_value = self.active_device_state
|
||||
for i in range(0, self.STATE_ACTIVE_DEVICE_MAX_VALUE + 1):
|
||||
|
Loading…
x
Reference in New Issue
Block a user