From bf1caf50e1fb7fbce8f2b716b5e589f6054a1505 Mon Sep 17 00:00:00 2001 From: lifetimr <76044510+lifetimr@users.noreply.github.com> Date: Mon, 24 Nov 2025 20:52:23 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9cover=E6=A8=A1=E5=9D=97?= =?UTF-8?q?=E4=B8=8BOPEN/STOP/PAUSE=E6=97=A0=E6=B3=95=E6=AD=A3=E5=B8=B8?= =?UTF-8?q?=E6=9A=B4=E9=9C=B2=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- custom_components/xiaomi_home/cover.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/custom_components/xiaomi_home/cover.py b/custom_components/xiaomi_home/cover.py index deba601..3245bd8 100644 --- a/custom_components/xiaomi_home/cover.py +++ b/custom_components/xiaomi_home/cover.py @@ -143,6 +143,8 @@ class Cover(MIoTServiceEntity, CoverEntity): self.entity_id) continue for item in prop.value_list.items: + item_str: str = item.name + item_name: str = re.sub(r'[^a-z]', '', item_str) if item.name in {'open', 'up'}: self._attr_supported_features |= ( CoverEntityFeature.OPEN)