updates
This commit is contained in:
@@ -35,6 +35,8 @@ async def async_setup(hass, config):
|
||||
async def async_set_half_service(service):
|
||||
entity_ids = await async_extract_entity_ids(hass, service, expand_group=True)
|
||||
for entity_id in entity_ids:
|
||||
if not entity_id.startswith(f"{COVER_DOMAIN}."):
|
||||
continue
|
||||
data = {
|
||||
ATTR_ENTITY_ID: entity_id,
|
||||
ATTR_POSITION: hass.states.get(entity_id).attributes.get(ATTR_HALF_POSITION, 20)
|
||||
|
||||
Reference in New Issue
Block a user