def set_cover_position(hass, position, entity_id=None):
 data = ({ATTR_ENTITY_ID: entity_id} if entity_id else {})
 data[ATTR_POSITION] = position
 hass.services.call(DOMAIN, SERVICE_SET_COVER_POSITION, data)

def set_cover_position ( hass , position , entity_id = None ) : data = ( { ATTR_ENTITY_ID : entity_id } if entity_id else { } ) data [ ATTR_POSITION ] = position hass . services . call ( DOMAIN , SERVICE_SET_COVER_POSITION , data )
move to specific position all or specified cover .