mirror of
https://github.com/XiaoMi/ha_xiaomi_home.git
synced 2026-01-12 20:00:42 +08:00
Merge bf1caf50e1 into d5c5e387c2
This commit is contained in:
commit
345f686597
@ -143,6 +143,8 @@ class Cover(MIoTServiceEntity, CoverEntity):
|
|||||||
self.entity_id)
|
self.entity_id)
|
||||||
continue
|
continue
|
||||||
for item in prop.value_list.items:
|
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'}:
|
if item.name in {'open', 'up'}:
|
||||||
self._attr_supported_features |= (
|
self._attr_supported_features |= (
|
||||||
CoverEntityFeature.OPEN)
|
CoverEntityFeature.OPEN)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user