fixed toggle
This commit is contained in:
@@ -4,7 +4,6 @@ from copy import deepcopy
|
|||||||
from appdaemon.plugins.hass.hassapi import Hass
|
from appdaemon.plugins.hass.hassapi import Hass
|
||||||
from appdaemon.plugins.mqtt.mqttapi import Mqtt
|
from appdaemon.plugins.mqtt.mqttapi import Mqtt
|
||||||
|
|
||||||
# from ..room_control.room_control import RoomController
|
|
||||||
|
|
||||||
class AqaraCube(Hass, Mqtt):
|
class AqaraCube(Hass, Mqtt):
|
||||||
def initialize(self):
|
def initialize(self):
|
||||||
@@ -42,7 +41,7 @@ class AqaraCube(Hass, Mqtt):
|
|||||||
|
|
||||||
elif description.startswith('toggle'):
|
elif description.startswith('toggle'):
|
||||||
cause = f'{self.args["cube"]} {action}'
|
cause = f'{self.args["cube"]} {action}'
|
||||||
self.app.toggle(kwargs={'cause': cause})
|
self.app.toggle_activate(kwargs={'cause': cause})
|
||||||
|
|
||||||
# def handle_rotate_right(self, payload):
|
# def handle_rotate_right(self, payload):
|
||||||
# self.log(f'{self.args["cube"]}: Rotate right')
|
# self.log(f'{self.args["cube"]}: Rotate right')
|
||||||
|
|||||||
Reference in New Issue
Block a user