From b6cb0e0d17067ab1c8d207cad0d008ecb899dac1 Mon Sep 17 00:00:00 2001 From: Christophe Braud Date: Thu, 14 Nov 2024 20:59:03 +0100 Subject: [PATCH 1/3] Update actions from toggle_* to open/close --- apps/controllerx/cx_devices/tuya.py | 1 - 1 file changed, 1 deletion(-) diff --git a/apps/controllerx/cx_devices/tuya.py b/apps/controllerx/cx_devices/tuya.py index 95344578..07d36c13 100644 --- a/apps/controllerx/cx_devices/tuya.py +++ b/apps/controllerx/cx_devices/tuya.py @@ -83,7 +83,6 @@ def get_z2m_actions_mapping(self) -> DefaultActionsMapping: "3_single": Cover.TOGGLE_CLOSE, } - class TuYaERS10TZBVKAALightController(LightController): def get_z2m_actions_mapping(self) -> DefaultActionsMapping: return { From 42de50671491a6d363f63c1e58e42baa12806f64 Mon Sep 17 00:00:00 2001 From: Christophe Braud Date: Thu, 14 Nov 2024 21:03:57 +0100 Subject: [PATCH 2/3] Update actions from toggle_* to open/close --- apps/controllerx/cx_devices/tuya.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/controllerx/cx_devices/tuya.py b/apps/controllerx/cx_devices/tuya.py index 07d36c13..a75f0820 100644 --- a/apps/controllerx/cx_devices/tuya.py +++ b/apps/controllerx/cx_devices/tuya.py @@ -78,9 +78,9 @@ def get_zha_action(self, data: EventData) -> str: class TS0043CoverController(CoverController): def get_z2m_actions_mapping(self) -> DefaultActionsMapping: return { - "1_single": Cover.TOGGLE_OPEN, + "1_single": Cover.OPEN, "2_single": Cover.STOP, - "3_single": Cover.TOGGLE_CLOSE, + "3_single": Cover.CLOSE, } class TuYaERS10TZBVKAALightController(LightController): From eaf9723bbd4e410d6275e59bab29012fa0a3c7e9 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Thu, 14 Nov 2024 20:16:33 +0000 Subject: [PATCH 3/3] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- apps/controllerx/cx_devices/tuya.py | 1 + 1 file changed, 1 insertion(+) diff --git a/apps/controllerx/cx_devices/tuya.py b/apps/controllerx/cx_devices/tuya.py index a75f0820..6133c2c5 100644 --- a/apps/controllerx/cx_devices/tuya.py +++ b/apps/controllerx/cx_devices/tuya.py @@ -83,6 +83,7 @@ def get_z2m_actions_mapping(self) -> DefaultActionsMapping: "3_single": Cover.CLOSE, } + class TuYaERS10TZBVKAALightController(LightController): def get_z2m_actions_mapping(self) -> DefaultActionsMapping: return {