修改cover模块下OPEN/STOP/PAUSE无法正常暴露的问题

This commit is contained in:
lifetimr 2025-11-24 20:52:23 +08:00 committed by GitHub
parent 1b87381f43
commit bf1caf50e1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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)