From 3d7a47fb6b33e7f9e7d359dfdab43769e1ee2b25 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lucas=20Mind=C3=AAllo=20de=20Andrade?= Date: Sat, 22 Jun 2024 12:22:46 -0300 Subject: [PATCH] Tuya curtain robot stuck in open state (#118444) --- homeassistant/components/tuya/cover.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/homeassistant/components/tuya/cover.py b/homeassistant/components/tuya/cover.py index 2e81529f974..e92c6f5c5f2 100644 --- a/homeassistant/components/tuya/cover.py +++ b/homeassistant/components/tuya/cover.py @@ -46,7 +46,7 @@ COVERS: dict[str, tuple[TuyaCoverEntityDescription, ...]] = { key=DPCode.CONTROL, translation_key="curtain", current_state=DPCode.SITUATION_SET, - current_position=(DPCode.PERCENT_CONTROL, DPCode.PERCENT_STATE), + current_position=(DPCode.PERCENT_STATE, DPCode.PERCENT_CONTROL), set_position=DPCode.PERCENT_CONTROL, device_class=CoverDeviceClass.CURTAIN, ),