From 986996c595b72c03d1846b6cfe4d187be40eed0d Mon Sep 17 00:00:00 2001 From: John Lancaster <32917998+jsl12@users.noreply.github.com> Date: Sun, 28 Jan 2024 08:48:00 -0600 Subject: [PATCH] fixed toggle --- apps/cubes/cube.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/apps/cubes/cube.py b/apps/cubes/cube.py index 536b8e2..01634c0 100644 --- a/apps/cubes/cube.py +++ b/apps/cubes/cube.py @@ -4,7 +4,6 @@ from copy import deepcopy from appdaemon.plugins.hass.hassapi import Hass from appdaemon.plugins.mqtt.mqttapi import Mqtt -# from ..room_control.room_control import RoomController class AqaraCube(Hass, Mqtt): def initialize(self): @@ -42,7 +41,7 @@ class AqaraCube(Hass, Mqtt): elif description.startswith('toggle'): 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): # self.log(f'{self.args["cube"]}: Rotate right')